Skip to content

Commit bc4c699

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents de02595 + 4c57084 commit bc4c699

File tree

5 files changed

+9
-70
lines changed

5 files changed

+9
-70
lines changed

cmake/ext/curl/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ project(
2929

3030
include(CheckIncludeFiles)
3131
include(CheckSourceRuns)
32-
include(CheckSymbolExists)
3332
include(CMakeDependentOption)
3433
include(CMakePushCheckState)
3534
include(FeatureSummary)
@@ -172,26 +171,6 @@ if(PHP_THREAD_SAFETY AND CURL_SSL_FOUND)
172171
endif()
173172
endif()
174173

175-
# Sanity check.
176-
if(TARGET CURL::libcurl)
177-
cmake_push_check_state(RESET)
178-
set(CMAKE_REQUIRED_LIBRARIES CURL::libcurl)
179-
180-
check_symbol_exists(
181-
curl_easy_perform
182-
curl/curl.h
183-
_PHP_HAVE_CURL_EASY_PERFORM
184-
)
185-
cmake_pop_check_state()
186-
187-
if(NOT _PHP_HAVE_CURL_EASY_PERFORM)
188-
message(
189-
FATAL_ERROR
190-
"ext/curl sanity check failed: 'curl_easy_perform()' could not be found."
191-
)
192-
endif()
193-
endif()
194-
195174
set(HAVE_CURL TRUE)
196175

197176
configure_file(cmake/config.h.in config.h)

cmake/ext/gd/CMakeLists.txt

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ project(
7777
LANGUAGES C
7878
)
7979

80-
include(CheckSourceCompiles)
8180
include(CheckSourceRuns)
8281
include(CheckSymbolExists)
8382
include(CMakeDependentOption)
@@ -412,34 +411,6 @@ if(NOT PHP_EXT_GD_EXTERNAL)
412411
set(JISX0208 TRUE)
413412
set(USE_GD_JISX0208 TRUE)
414413
endif()
415-
416-
# Do sanity check when all required packages are found.
417-
block()
418-
get_target_property(libraries php_ext_gd LINK_LIBRARIES)
419-
set(doSanityCheck TRUE)
420-
foreach(library ${libraries})
421-
if(library MATCHES "^.+::.+$" AND NOT TARGET ${library})
422-
set(doSanityCheck FALSE)
423-
break()
424-
endif()
425-
endforeach()
426-
427-
if(doSanityCheck)
428-
cmake_push_check_state(RESET)
429-
set(CMAKE_REQUIRED_LIBRARIES ${libraries})
430-
431-
check_source_compiles(
432-
C
433-
[[int main(void) { return 0; }]]
434-
_PHP_GD_SANITY_CHECK_COMPILES
435-
)
436-
cmake_pop_check_state()
437-
438-
if(NOT _PHP_GD_SANITY_CHECK_COMPILES)
439-
message(FATAL_ERROR "GD sanity check failed.")
440-
endif()
441-
endif()
442-
endblock()
443414
else()
444415
find_package(GD 2.1.0)
445416
set_package_properties(
@@ -454,18 +425,7 @@ else()
454425
target_sources(php_ext_gd PRIVATE gd_compat.c)
455426

456427
if(TARGET GD::GD)
457-
# Sanity check.
458-
cmake_push_check_state(RESET)
459-
set(CMAKE_REQUIRED_LIBRARIES GD::GD)
460-
check_symbol_exists(gdImageCreate gd.h HAVE_LIBGD)
461-
cmake_pop_check_state()
462-
463-
if(NOT HAVE_LIBGD)
464-
message(
465-
FATAL_ERROR
466-
"GD sanity check failed: 'gdImageCreate()' could not be found in libgd."
467-
)
468-
endif()
428+
set(HAVE_LIBGD TRUE)
469429

470430
# Build and run a program to determine if GD has support for the given
471431
# format. The first argument is the proper-noun-capitalized name of the

cmake/ext/gettext/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ if(TARGET Intl::Intl)
8383
set(CMAKE_REQUIRED_LIBRARIES Intl::Intl)
8484

8585
# Sanity check.
86-
check_symbol_exists(bindtextdomain libintl.h _PHP_HAVE_BINDTEXTDOMAIN)
87-
if(NOT _PHP_HAVE_BINDTEXTDOMAIN)
86+
check_symbol_exists(bindtextdomain libintl.h PHP_EXT_GETTEXT_SANITY_CHECK)
87+
if(NOT PHP_EXT_GETTEXT_SANITY_CHECK)
8888
message(
8989
FATAL_ERROR
9090
"The ext/gettext sanity check for intl library failed: The "

cmake/ext/ldap/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ if(TARGET LDAP::LDAP)
9999
set(CMAKE_REQUIRED_LIBRARIES LDAP::LDAP)
100100

101101
# Sanity check.
102-
check_symbol_exists(ldap_sasl_bind_s ldap.h _PHP_HAVE_LDAP_SASL_BIND_S)
103-
if(NOT _PHP_HAVE_LDAP_SASL_BIND_S)
102+
check_symbol_exists(ldap_sasl_bind_s ldap.h PHP_EXT_LDAP_HAS_LDAP_SASL_BIND_S)
103+
if(NOT PHP_EXT_LDAP_HAS_LDAP_SASL_BIND_S)
104104
# Fallback to deprecated ldap_simple_bind_s().
105-
check_symbol_exists(ldap_simple_bind_s ldap.h _PHP_HAVE_LDAP_SIMPLE_BIND_S)
105+
check_symbol_exists(ldap_simple_bind_s ldap.h PHP_HAS_LDAP_SIMPLE_BIND_S)
106106
endif()
107-
if(NOT _PHP_HAVE_LDAP_SASL_BIND_S AND NOT _PHP_HAVE_LDAP_SIMPLE_BIND_S)
107+
if(NOT PHP_EXT_LDAP_HAS_LDAP_SASL_BIND_S AND NOT PHP_HAS_LDAP_SIMPLE_BIND_S)
108108
message(
109109
FATAL_ERROR
110110
"LDAP sanity check failed: neither 'ldap_sasl_bind_s()' nor "

cmake/ext/pdo_firebird/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ if(TARGET Firebird::Firebird)
9898
check_cxx_symbol_exists(
9999
Firebird::fb_get_master_interface
100100
firebird/Interface.h
101-
_PHP_EXT_PDO_FIREBIRD_SANITY_CHECK
101+
PHP_EXT_PDO_FIREBIRD_SANITY_CHECK
102102
)
103103
cmake_pop_check_state()
104104

105-
if(NOT _PHP_EXT_PDO_FIREBIRD_SANITY_CHECK)
105+
if(NOT PHP_EXT_PDO_FIREBIRD_SANITY_CHECK)
106106
message(
107107
FATAL_ERROR
108108
"Firebird sanity check failed: 'fb_get_master_interface()' not found."

0 commit comments

Comments
 (0)