Skip to content

Commit 1ed679c

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 71d5ca4 + 2508b43 commit 1ed679c

File tree

88 files changed

+88
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+88
-131
lines changed

.github/workflows/check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ jobs:
5050
run: |
5151
normalizer.cmake -- \
5252
--set normalize_indent_style=false \
53-
--set normalize_cmake_minimum_required=3.25...3.31 \
53+
--set normalize_cmake_minimum_required=3.27...4.0 \
5454
-j

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ See build system documentation for available PHP configuration variables and
5555
further information.
5656
#]=============================================================================]
5757

58-
cmake_minimum_required(VERSION 3.25...3.31)
58+
cmake_minimum_required(VERSION 3.27...4.0)
5959

6060
if(CMAKE_BINARY_DIR PATH_EQUAL CMAKE_CURRENT_LIST_DIR)
6161
message(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# PHP build system
22

33
[![PHP version](https://img.shields.io/badge/PHP-8.5-777BB4?logo=php&labelColor=17181B)](https://www.php.net/)
4-
[![CMake version](https://img.shields.io/badge/CMake-3.25-064F8C?logo=cmake&labelColor=17181B)](https://cmake.org)
4+
[![CMake version](https://img.shields.io/badge/CMake-3.27-064F8C?logo=cmake&labelColor=17181B)](https://cmake.org)
55
[![C11](https://img.shields.io/badge/standard-C11-A8B9CC?logo=C&labelColor=17181B)](https://port70.net/~nsz/c/c11/n1570.html)
66
[![GNU](https://img.shields.io/badge/-GNU-A42E2B?logo=gnu&labelColor=17181B)](https://www.gnu.org/)
77
[![Ninja](https://img.shields.io/badge/%F0%9F%A5%B7-Ninja%20build-DD6620?labelColor=17181B)](https://ninja-build.org/)

cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.25...3.31)
1+
cmake_minimum_required(VERSION 3.27...4.0)
22

33
# Configure CMake behavior.
44
include(cmake/CMakeDefaults.cmake)

cmake/Zend/CMakeLists.txt

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -330,28 +330,7 @@ set_target_properties(
330330
# Add usage requirements to PHP interface targets.
331331
################################################################################
332332

333-
# Cleaner COMPILE_ONLY generator expression is available in CMake >= 3.27.
334-
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
335-
target_link_libraries(php_config INTERFACE $<COMPILE_ONLY:Zend::Zend>)
336-
else()
337-
target_compile_definitions(
338-
php_config
339-
INTERFACE
340-
$<TARGET_PROPERTY:Zend::Zend,INTERFACE_COMPILE_DEFINITIONS>
341-
)
342-
target_compile_options(
343-
php_config
344-
INTERFACE
345-
$<TARGET_PROPERTY:Zend::Zend,INTERFACE_COMPILE_OPTIONS>
346-
)
347-
target_include_directories(
348-
php_config
349-
INTERFACE
350-
$<TARGET_PROPERTY:Zend::Zend,INTERFACE_INCLUDE_DIRECTORIES>
351-
$<TARGET_PROPERTY:Zend::Zend,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>
352-
)
353-
endif()
354-
333+
target_link_libraries(php_config INTERFACE $<COMPILE_ONLY:Zend::Zend>)
355334
target_link_libraries(php_sapi INTERFACE Zend::Zend)
356335
target_sources(php_sapi INTERFACE $<TARGET_OBJECTS:Zend::Zend>)
357336

cmake/cmake/modules/PHP/AddCustomCommand/RunCommand.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Expected variables:
1111
* COMMENT
1212
#]=============================================================================]
1313

14-
cmake_minimum_required(VERSION 3.25...3.31)
14+
cmake_minimum_required(VERSION 3.27...4.0)
1515

1616
if(NOT CMAKE_SCRIPT_MODE_FILE OR NOT PHP_EXECUTABLE OR NOT PHP_COMMAND)
1717
return()

cmake/cmake/modules/PHP/PkgConfig.cmake

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,7 @@ function(_php_pkgconfig_parse_variables variables)
8888
list(POP_FRONT variables var value)
8989

9090
list(APPEND resultVariables ${var})
91-
92-
# The resultValues are for the install(CODE) and generator expression
93-
# $<INSTALL_PREFIX> works since CMake 3.27, for earlier versions the escaped
94-
# variable CMAKE_INSTALL_PREFIX can be used.
95-
if(
96-
CMAKE_VERSION VERSION_LESS 3.27
97-
AND value MATCHES [[.*\$<INSTALL_PREFIX>.*]]
98-
)
99-
string(
100-
REPLACE
101-
"$<INSTALL_PREFIX>"
102-
"\${CMAKE_INSTALL_PREFIX}"
103-
replacedValue
104-
"${value}"
105-
)
106-
list(APPEND resultValues "${replacedValue}")
107-
else()
108-
list(APPEND resultValues "${value}")
109-
endif()
91+
list(APPEND resultValues "${value}")
11092

11193
# Replace possible INSTALL_PREFIX in value for usage in add_custom_command,
11294
# in the resultValues above the intact genex is left for enabling the

cmake/cmake/modules/PHP/Stubs/StubsGenerator.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Script for processing PHP stub sources.
33
#]=============================================================================]
44

5-
cmake_minimum_required(VERSION 3.25...3.31)
5+
cmake_minimum_required(VERSION 3.27...4.0)
66

77
if(NOT CMAKE_SCRIPT_MODE_FILE)
88
message(FATAL_ERROR "This is a command-line script.")

cmake/cmake/scripts/GenerateCredits.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Run with: `cmake -P cmake/scripts/GenerateCredits.cmake`
77

8-
cmake_minimum_required(VERSION 3.25...3.31)
8+
cmake_minimum_required(VERSION 3.27...4.0)
99

1010
if(NOT CMAKE_SCRIPT_MODE_FILE)
1111
message(FATAL_ERROR "This is a command-line script.")

cmake/cmake/scripts/GenerateGrammar.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# [-D RE2C_EXECUTABLE=path/to/re2c] \
1111
# -P cmake/scripts/GenerateGrammar.cmake
1212

13-
cmake_minimum_required(VERSION 3.25...3.31)
13+
cmake_minimum_required(VERSION 3.27...4.0)
1414

1515
if(NOT CMAKE_SCRIPT_MODE_FILE)
1616
message(FATAL_ERROR "This is a command-line script.")

0 commit comments

Comments
 (0)