Skip to content

Commit 996a0e6

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 14d70ad + 607ebc8 commit 996a0e6

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

cmake/cmake/ConfigureChecks.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ check_symbol_exists(strlcat "string.h" HAVE_STRLCAT)
400400
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
401401
check_symbol_exists(explicit_bzero "string.h" HAVE_EXPLICIT_BZERO)
402402

403-
# Check strptime().
404-
include(PHP/CheckStrptime)
405-
406403
# Check reentrant functions.
407404
include(PHP/CheckReentrantFunctions)
408405

cmake/cmake/modules/PHP/CheckStrptime.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ include(CheckFunctionExists)
2121
include(CheckSymbolExists)
2222
include(CMakePushCheckState)
2323

24+
if(PHP_VERSION VERSION_GREATER_EQUAL 9.0)
25+
message(
26+
DEPRECATION
27+
"PHP/CheckStrptime module is obsolete and should be removed. PHP "
28+
"'strptime()' function is deprecated as of PHP 8.1.0."
29+
)
30+
endif()
31+
2432
# Check whether linker sees the strptime and it is declared in time.h.
2533
cmake_push_check_state(RESET)
2634
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)

cmake/ext/standard/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ endif()
275275
# Configuration checks.
276276
################################################################################
277277

278+
# Check strptime().
279+
include(PHP/CheckStrptime)
280+
278281
# Check if there is a support means of creating a new process and defining which
279282
# handles it receives.
280283
message(CHECK_START "Checking if OS can spawn processes with inherited handles")

cmake/ext/standard/config.cmake.h.in

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
/* Define to 1 if you have the 'crypt_r' function. */
2626
#cmakedefine HAVE_CRYPT_R 1
2727

28+
/* Define to 1 if you have the declaration of 'strptime'. */
29+
#cmakedefine HAVE_DECL_STRPTIME 1
30+
2831
/* Define to 1 if you have the 'dn_expand' function. */
2932
#cmakedefine HAVE_DN_EXPAND 1
3033

@@ -62,9 +65,12 @@
6265
/* Define to 1 if you have the 'res_search' function. */
6366
#cmakedefine HAVE_RES_SEARCH 1
6467

65-
/* Define to 1 if PHP uses its own crypt_r, and to 0 if using the external
66-
crypt library. */
67-
#cmakedefine01 PHP_USE_PHP_CRYPT_R
68+
/* Define to 1 if you have the 'strptime' function. */
69+
#cmakedefine HAVE_STRPTIME 1
6870

6971
/* Define to 1 if your system has fork/vfork/CreateProcess. */
7072
#cmakedefine PHP_CAN_SUPPORT_PROC_OPEN 1
73+
74+
/* Define to 1 if PHP uses its own crypt_r, and to 0 if using the external
75+
crypt library. */
76+
#cmakedefine01 PHP_USE_PHP_CRYPT_R

cmake/main/php_config.cmake.h.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@
114114
/* Define to 1 if you have the 'ctime_r' function. */
115115
#cmakedefine HAVE_CTIME_R 1
116116

117-
/* Define to 1 if you have the declaration of 'strptime'. */
118-
#cmakedefine HAVE_DECL_STRPTIME 1
119-
120117
/* Define to 1 if you have the <dirent.h> header file. */
121118
#cmakedefine HAVE_DIRENT_H 1
122119

@@ -438,9 +435,6 @@
438435
/* Define to 1 if you have the 'strnlen' function. */
439436
#cmakedefine HAVE_STRNLEN 1
440437

441-
/* Define to 1 if you have the 'strptime' function. */
442-
#cmakedefine HAVE_STRPTIME 1
443-
444438
/* Define to 1 if you have the 'strtok_r' function. */
445439
#cmakedefine HAVE_STRTOK_R 1
446440

0 commit comments

Comments
 (0)