File tree Expand file tree Collapse file tree 8 files changed +28
-20
lines changed Expand file tree Collapse file tree 8 files changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,9 @@ mark_as_advanced(PHP_DMALLOC)
133133option (PHP_DTRACE "Enable DTrace support" OFF )
134134mark_as_advanced (PHP_DTRACE)
135135
136- if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
137- set (PHP_FD_SETSIZE "256" CACHE STRING "Size of descriptor sets" )
138- else ()
139- set (PHP_FD_SETSIZE "" CACHE STRING "Size of descriptor sets" )
136+ set (PHP_FD_SETSIZE "" CACHE STRING "Size of file descriptor sets" )
137+ if (CMAKE_SYSTEM_NAME STREQUAL "Windows" AND PHP_FD_SETSIZE STREQUAL "" )
138+ set_property (CACHE PHP_FD_SETSIZE PROPERTY VALUE "256" )
140139endif ()
141140mark_as_advanced (PHP_FD_SETSIZE)
142141
@@ -145,7 +144,7 @@ mark_as_advanced(PHP_VALGRIND)
145144
146145option (
147146 PHP_MEMORY_SANITIZER
148- "Enable the memory sanitizer compiler options (clang only)"
147+ "Enable the memory sanitizer compiler options (Clang only)"
149148 OFF
150149)
151150mark_as_advanced (PHP_MEMORY_SANITIZER)
Original file line number Diff line number Diff line change @@ -433,15 +433,19 @@ include(PHP/CheckWrite)
433433
434434# Checking file descriptor sets.
435435message (CHECK_START "Checking file descriptor sets size" )
436- if (PHP_FD_SETSIZE GREATER 0)
436+ if (PHP_FD_SETSIZE MATCHES "^[0-9]+$" AND PHP_FD_SETSIZE GREATER 0)
437437 message (CHECK_PASS "using FD_SETSIZE=${PHP_FD_SETSIZE} " )
438438 target_compile_definitions (
439439 php_configuration
440440 INTERFACE
441441 $<$<COMPILE_LANGUAGE:ASM,C,CXX>:FD_SETSIZE=${PHP_FD_SETSIZE} >
442442 )
443- elseif (NOT PHP_FD_SETSIZE STREQUAL "" AND NOT PHP_FD_SETSIZE GREATER 0)
444- message (FATAL_ERROR "Invalid value PHP_FD_SETSIZE=${PHP_FD_SETSIZE} " )
443+ elseif (NOT PHP_FD_SETSIZE STREQUAL "" )
444+ message (
445+ FATAL_ERROR
446+ "Invalid value of PHP_FD_SETSIZE=${PHP_FD_SETSIZE} . Pass integer greater "
447+ "than 0."
448+ )
445449else ()
446450 message (CHECK_PASS "using system default" )
447451endif ()
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ if(PHP_UNDEFINED_SANITIZER)
382382 NOT DEFINED PHP_HAVE_UBSAN_EXITCODE
383383 AND CMAKE_CROSSCOMPILING
384384 AND NOT CMAKE_CROSSCOMPILING_EMULATOR
385- AND CMAKE_C_COMPILER_ID STREQUAL " Clang"
385+ AND CMAKE_C_COMPILER_ID MATCHES "AppleClang| Clang"
386386 AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 17
387387 )
388388 # When cross-compiling without emulator and using Clang 17 and greater,
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ function(cclient_check_symbol_exists symbol header result)
175175
176176 # The c-client/c-client.h includes headers that define deprecated
177177 # _BSD_SOURCE, which emits a warning when including system's features.h.
178- # When building with clang , such warning results in an error. This can be
178+ # When building with Clang , such warning results in an error. This can be
179179 # bypassed with defining the _DEFAULT_SOURCE to indicate that the source is
180180 # being transitioned to use the new macro, or in this case imap extension
181181 # being unbunbled in the PHP-8.4.
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function(_php_check_attribute what attribute result)
106106 cmake_push_check_state(RESET)
107107 # Compilers by default may not treat attribute warnings as errors, so some
108108 # error flag needs to be set to make the check certain (-Werror=attributes,
109- # clang 's -Werror=unknown-attributes, -Werror...). Use the internal CMake
109+ # Clang 's -Werror=unknown-attributes, -Werror...). Use the internal CMake
110110 # compiler-agnostic variable CMAKE_C_COMPILE_OPTIONS_WARNING_AS_ERROR
111111 # (-Werror or other compiler-based option), if available.
112112 list (JOIN CMAKE_C_COMPILE_OPTIONS_WARNING_AS_ERROR " " CMAKE_REQUIRED_FLAGS)
Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ if(PHP_DTRACE)
156156 message (CHECK_FAIL "no" )
157157 endif ()
158158endif ()
159+ add_feature_info(
160+ "DTrace"
161+ PHP_DTRACE
162+ "performance analysis and troubleshooting"
163+ )
159164
160165# Add Dmalloc.
161166if (PHP_DMALLOC)
Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ add_feature_info(
1111 "Command-line interface SAPI executable"
1212)
1313
14- message (CHECK_START "Checking cli SAPI" )
15- if (SAPI_CLI)
16- message (CHECK_PASS "enabled" )
17- else ()
18- message (CHECK_FAIL "disabled" )
19- return ()
20- endif ()
21-
2214cmake_dependent_option(
2315 SAPI_CLI_WIN_NO_CONSOLE
2416 "Build console-less CLI SAPI"
@@ -32,6 +24,14 @@ add_feature_info(
3224 "[Windows only] Same as CLI SAPI but without console (no output is given)"
3325)
3426
27+ message (CHECK_START "Checking cli SAPI" )
28+ if (SAPI_CLI)
29+ message (CHECK_PASS "enabled" )
30+ else ()
31+ message (CHECK_FAIL "disabled" )
32+ return ()
33+ endif ()
34+
3535check_symbol_exists(setproctitle "unistd.h;stdlib.h" HAVE_SETPROCTITLE)
3636check_include_file(sys/pstat.h HAVE_SYS_PSTAT_H)
3737
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ option(SAPI_FPM "Enable the FPM SAPI module" OFF)
2121add_feature_info(
2222 "sapi/fpm"
2323 SAPI_FPM
24- "FPM SAPI module"
24+ "FastCGI Process Manager ( FPM) SAPI module"
2525)
2626
2727if (SAPI_FPM)
You can’t perform that action at this time.
0 commit comments