Skip to content

Commit 766a766

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 9f887fc + f21a13d commit 766a766

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

cmake/cmake/Configuration.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ mark_as_advanced(PHP_DTRACE)
132132

133133
set(PHP_FD_SETSIZE "" CACHE STRING "Size of file descriptor sets")
134134
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND PHP_FD_SETSIZE STREQUAL "")
135+
# This allows up to 256 sockets to be select()ed in a single call to select(),
136+
# instead of the usual 64.
135137
set_property(CACHE PHP_FD_SETSIZE PROPERTY VALUE "256")
136138
endif()
137139
mark_as_advanced(PHP_FD_SETSIZE)

cmake/cmake/ConfigureChecks.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ if(PHP_FD_SETSIZE MATCHES "^[0-9]+$" AND PHP_FD_SETSIZE GREATER 0)
446446
target_compile_definitions(
447447
php_config
448448
INTERFACE
449-
$<$<COMPILE_LANGUAGE:ASM,C,CXX>:FD_SETSIZE=${PHP_FD_SETSIZE}>
449+
$<$<COMPILE_LANGUAGE:C,CXX>:FD_SETSIZE=${PHP_FD_SETSIZE}>
450450
)
451451
elseif(NOT PHP_FD_SETSIZE STREQUAL "")
452452
message(
@@ -893,7 +893,7 @@ if(PHP_DMALLOC)
893893
target_compile_definitions(
894894
php_config
895895
INTERFACE
896-
$<$<COMPILE_LANGUAGE:ASM,C,CXX>:DMALLOC_FUNC_CHECK>
896+
$<$<COMPILE_LANGUAGE:C,CXX>:DMALLOC_FUNC_CHECK>
897897
)
898898

899899
target_link_libraries(php_config INTERFACE Dmalloc::Dmalloc)

cmake/cmake/Flags.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ if(PHP_HAS_FFP_CONTRACT_OFF_C)
195195
)
196196
endif()
197197

198+
# Enable inline reader cache.
199+
# https://devblogs.microsoft.com/cppblog/visual-studio-2017-throughput-improvements-and-advice/
200+
if(MSVC)
201+
target_compile_options(
202+
php_config
203+
INTERFACE $<$<COMPILE_LANGUAGE:C,CXX>:/d2FuncCache1>
204+
)
205+
endif()
206+
198207
################################################################################
199208
# Sanitizer flags.
200209
################################################################################

cmake/main/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ PHP main binding.
44

55
include(CheckSymbolExists)
66

7-
# Compile and link properties for all targets in this directory scope.
7+
################################################################################
8+
# Compile and link properties for all binary targets in this directory scope.
9+
################################################################################
10+
811
add_compile_definitions(ZEND_ENABLE_STATIC_TSRMLS_CACHE)
912
link_libraries(PHP::config)
1013

0 commit comments

Comments
 (0)