Skip to content

Commit f269668

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 4453770 + 3315ac8 commit f269668

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed

cmake/ext/standard/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,8 @@ endif()
283283
# Configuration checks.
284284
################################################################################
285285

286-
# Check for ARM CRC32 API.
287286
include(cmake/CheckArmCrc32.cmake)
288-
289-
# Check for fnmatch() implementation.
290287
include(cmake/CheckFnmatch.cmake)
291-
292-
# Check strptime().
293288
include(cmake/CheckStrptime.cmake)
294289

295290
# Check if there is a support means of creating a new process and defining which
@@ -307,7 +302,7 @@ else()
307302
message(CHECK_FAIL "no")
308303
endif()
309304

310-
# The getifaddrs() is available in C library some systems (Solaris 11.4...)
305+
# The getifaddrs() is available in C library on some systems (Solaris 11.4...)
311306
php_search_libraries(
312307
getifaddrs
313308
HEADERS ifaddrs.h

cmake/ext/standard/cmake/CheckCrypt.cmake

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
#[=============================================================================[
2-
# CheckCrypt
3-
4-
Check whether the `crypt` library works as expected for PHP by running a set of
2+
Check whether the 'crypt' library works as expected for PHP by running a set of
53
PHP-specific checks.
64
7-
## Cache variables
8-
9-
* `HAVE_CRYPT_H`
10-
* `HAVE_CRYPT`
11-
* `HAVE_CRYPT_R`
12-
* `CRYPT_R_CRYPTD`
13-
* `CRYPT_R_STRUCT_CRYPT_DATA`
14-
* `CRYPT_R_GNU_SOURCE`
15-
16-
## Usage
5+
Cache variables:
176
18-
```cmake
19-
# CMakeLists.txt
20-
include(cmake/CheckCrypt.cmake)
21-
```
7+
* HAVE_CRYPT_H
8+
* HAVE_CRYPT
9+
* HAVE_CRYPT_R
10+
* CRYPT_R_CRYPTD
11+
* CRYPT_R_STRUCT_CRYPT_DATA
12+
* CRYPT_R_GNU_SOURCE
2213
#]=============================================================================]
2314

2415
include_guard(GLOBAL)
@@ -30,7 +21,7 @@ include(CheckSymbolExists)
3021
include(CMakePushCheckState)
3122

3223
# Check whether crypt() and crypt_r() are available.
33-
function(_php_check_crypt)
24+
function(_php_ext_standard_check_crypt)
3425
message(CHECK_START "Checking basic crypt functionality")
3526

3627
cmake_push_check_state(RESET)
@@ -67,7 +58,7 @@ function(_php_check_crypt)
6758
endfunction()
6859

6960
# Detect the style of crypt_r() if any is available.
70-
function(_php_check_crypt_r result)
61+
function(_php_ext_standard_check_crypt_r result)
7162
set(${result} TRUE PARENT_SCOPE)
7263

7364
message(CHECK_START "Checking crypt_r() data struct")
@@ -178,7 +169,7 @@ function(_php_check_crypt_r result)
178169
endfunction()
179170

180171
# Check if crypt library is usable.
181-
function(_php_check_crypt_is_usable)
172+
function(_php_ext_standard_check_crypt_is_usable)
182173
cmake_push_check_state(RESET)
183174
set(CMAKE_REQUIRED_QUIET TRUE)
184175

@@ -406,9 +397,9 @@ function(_php_check_crypt_is_usable)
406397
endfunction()
407398

408399
block()
409-
_php_check_crypt()
400+
_php_ext_standard_check_crypt()
410401

411-
_php_check_crypt_r(result)
402+
_php_ext_standard_check_crypt_r(result)
412403
if(NOT result)
413404
message(
414405
FATAL_ERROR
@@ -417,5 +408,5 @@ block()
417408
)
418409
endif()
419410

420-
_php_check_crypt_is_usable()
411+
_php_ext_standard_check_crypt_is_usable()
421412
endblock()

0 commit comments

Comments
 (0)