Skip to content

Commit 69d2514

Browse files
committed
Merge branch 'PHP-8.4'
2 parents c6ac123 + cc931b8 commit 69d2514

File tree

4 files changed

+108
-8
lines changed

4 files changed

+108
-8
lines changed

cmake/cmake/ConfigureChecks.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,10 @@ php_search_libraries(
625625
resolv # Solaris 2.6..7
626626
network # Haiku
627627
ws2_32 # Windows
628-
VARIABLE _HAVE_INET_NTOP
628+
VARIABLE PHP_HAS_INET_NTOP
629629
TARGET php_config INTERFACE
630630
)
631-
if(NOT _HAVE_INET_NTOP)
631+
if(NOT PHP_HAS_INET_NTOP)
632632
message(FATAL_ERROR "Cannot find 'inet_ntop()' which is required.")
633633
endif()
634634

@@ -643,10 +643,10 @@ php_search_libraries(
643643
resolv # Solaris 2.6..7
644644
network # Haiku
645645
ws2_32 # Windows
646-
VARIABLE _HAVE_INET_PTON
646+
VARIABLE PHP_HAS_INET_PTON
647647
TARGET php_config INTERFACE
648648
)
649-
if(NOT _HAVE_INET_PTON)
649+
if(NOT PHP_HAS_INET_PTON)
650650
message(FATAL_ERROR "Required inet_pton not found.")
651651
endif()
652652

cmake/cmake/presets/windows.json

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"version": 4,
3+
"configurePresets": [
4+
{
5+
"name": "windows",
6+
"displayName": "Windows configuration",
7+
"description": "PHP configuration for Windows",
8+
"binaryDir": "${sourceDir}/php-build/windows",
9+
"installDir": "C:/temp",
10+
"cacheVariables": {
11+
"PHP_EXT_COM_DOTNET": false,
12+
"PHP_EXT_CTYPE": false,
13+
"PHP_EXT_DOM": false,
14+
"PHP_EXT_FILEINFO": false,
15+
"PHP_EXT_FILTER": false,
16+
"PHP_EXT_ICONV": false,
17+
"PHP_EXT_LIBXML": false,
18+
"PHP_EXT_OPCACHE": false,
19+
"PHP_EXT_PDO": false,
20+
"PHP_EXT_PDO_SQLITE": false,
21+
"PHP_EXT_PHAR": false,
22+
"PHP_EXT_POSIX": false,
23+
"PHP_EXT_SESSION": false,
24+
"PHP_EXT_SIMPLEXML": false,
25+
"PHP_EXT_SQLITE3": false,
26+
"PHP_EXT_TOKENIZER": false,
27+
"PHP_EXT_XML": false,
28+
"PHP_EXT_XMLREADER": false,
29+
"PHP_EXT_XMLWRITER": false,
30+
31+
"PHP_SAPI_CGI": false,
32+
"PHP_SAPI_PHPDBG": false,
33+
34+
"CMAKE_INSTALL_BINDIR": "",
35+
"CMAKE_INSTALL_DATADIR": "",
36+
"CMAKE_INSTALL_LIBDIR": "",
37+
"CMAKE_INSTALL_LOCALSTATEDIR": "",
38+
"CMAKE_INSTALL_SBINDIR": "",
39+
"CMAKE_INSTALL_SYSCONFDIR": "",
40+
41+
"PHP_EXTENSION_DIR": "ext"
42+
}
43+
},
44+
{
45+
"name": "all-disabled-ts",
46+
"inherits": "all-disabled",
47+
"displayName": "Thread safety (ZTS) with all extensions disabled",
48+
"description": "PHP thread safe (ZTS) build with all PHP extensions and SAPIs disabled, only with CLI SAPI",
49+
"binaryDir": "${sourceDir}/php-build/windows-ts",
50+
"cacheVariables": {
51+
"PHP_THREAD_SAFETY": true
52+
}
53+
},
54+
{
55+
"name": "all-disabled-ninja",
56+
"inherits": "all-disabled",
57+
"displayName": "Ninja generator with all extensions disabled",
58+
"description": "PHP build using Ninja generator with all PHP extensions and SAPIs disabled, only with CLI SAPI",
59+
"binaryDir": "${sourceDir}/php-build/windows-ninja",
60+
"generator": "Ninja"
61+
}
62+
],
63+
"buildPresets": [
64+
{
65+
"name": "all-disabled",
66+
"configurePreset": "all-disabled"
67+
},
68+
{
69+
"name": "all-disabled-ts",
70+
"configurePreset": "all-disabled-ts"
71+
},
72+
{
73+
"name": "all-disabled-ninja",
74+
"configurePreset": "all-disabled-ninja"
75+
}
76+
],
77+
"testPresets": [
78+
{
79+
"name": "all-disabled",
80+
"configurePreset": "all-disabled",
81+
"environment": {
82+
"SKIP_IO_CAPTURE_TESTS": "1"
83+
},
84+
"output": {
85+
"shortProgress": true,
86+
"verbosity": "verbose"
87+
}
88+
},
89+
{
90+
"name": "all-disabled-ts",
91+
"configurePreset": "all-disabled-ts",
92+
"inherits": "all-disabled"
93+
},
94+
{
95+
"name": "all-disabled-ninja",
96+
"configurePreset": "all-disabled-ninja",
97+
"inherits": "all-disabled"
98+
}
99+
]
100+
}

cmake/ext/pcntl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ cmake_push_check_state(RESET)
177177
HEADERS sched.h
178178
LIBRARIES
179179
gnu # Haiku
180-
VARIABLE _HAVE_SCHED_GETCPU
180+
VARIABLE PHP_EXT_PCNTL_HAS_SCHED_GETCPU
181181
LIBRARY_VARIABLE library
182182
)
183183

184-
if(_HAVE_SCHED_GETCPU)
184+
if(PHP_EXT_PCNTL_HAS_SCHED_GETCPU)
185185
if(library)
186186
set(CMAKE_REQUIRED_LIBRARIES ${library})
187187
endif()

cmake/main/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ target_sources(
106106
$<$<NOT:$<PLATFORM_ID:Windows>>:${PHP_BINARY_DIR}/$<CONFIG>/main/php_config.h>
107107
)
108108

109-
check_symbol_exists(__ELF__ "" _HAVE_ELF)
110-
if(_HAVE_ELF)
109+
check_symbol_exists(__ELF__ "" PHP_HAS_ELF)
110+
if(PHP_HAS_ELF)
111111
target_sources(
112112
php_main
113113
PRIVATE

0 commit comments

Comments
 (0)