File tree Expand file tree Collapse file tree 5 files changed +20
-12
lines changed Expand file tree Collapse file tree 5 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -400,9 +400,6 @@ check_symbol_exists(strlcat "string.h" HAVE_STRLCAT)
400400check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
401401check_symbol_exists(explicit_bzero "string.h" HAVE_EXPLICIT_BZERO)
402402
403- # Check strptime().
404- include (PHP/CheckStrptime)
405-
406403# Check reentrant functions.
407404include (PHP/CheckReentrantFunctions)
408405
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ include(CheckFunctionExists)
2121include (CheckSymbolExists)
2222include (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.
2533cmake_push_check_state(RESET)
2634 set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
Original file line number Diff line number Diff 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.
280283message (CHECK_START "Checking if OS can spawn processes with inherited handles" )
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments