Skip to content

Commit 60db440

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents 1ff3e2b + 7ca01bc commit 60db440

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

cmake/ext/ftp/CMakeLists.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ Build extension as shared.
2121
2222
## PHP_EXT_FTP_SSL
2323
24-
* Default: `OFF`
24+
* Default: `ON`
2525
* Values: `ON|OFF`
2626
27-
Explicitly enable FTP over SSL support when building without openssl extension
28-
(`PHP_EXT_OPENSSL=OFF`) or when using `phpize`. If the `openssl` extension is
29-
enabled at the configure step (`PHP_EXT_OPENSSL=ON`), FTP-SSL is enabled
30-
implicitly regardless of this option.
27+
Explicitly enable or disable FTP over SSL support.
3128
#]=============================================================================]
3229

3330
cmake_minimum_required(VERSION 3.25...3.31)
@@ -58,10 +55,9 @@ cmake_dependent_option(
5855

5956
cmake_dependent_option(
6057
PHP_EXT_FTP_SSL
61-
"Explicitly enable FTP over SSL support when building without openssl\
62-
extension (PHP_EXT_OPENSSL=OFF) or when using phpize."
63-
OFF
64-
"PHP_EXT_FTP;NOT PHP_EXT_OPENSSL"
58+
"Explicitly enable FTP over SSL support."
59+
ON
60+
"PHP_EXT_FTP"
6561
OFF
6662
)
6763

@@ -83,7 +79,7 @@ target_sources(
8379
php_ftp.c
8480
)
8581

86-
if(PHP_EXT_FTP_SSL OR PHP_EXT_OPENSSL)
82+
if(PHP_EXT_FTP_SSL)
8783
find_package(OpenSSL ${PHP_OPENSSL_MIN_VERSION} COMPONENTS SSL)
8884
set_package_properties(
8985
OpenSSL

cmake/main/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,11 @@ endfunction()
339339
# Configure main configuration header (php_config.h, config.w32.h).
340340
function(_php_main_configure_php_config)
341341
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
342+
set(PHP_CONFIG_HEADER_GUARD "CONFIG_W32_H")
342343
set(PHP_CONFIG_H_WINDOWS 1)
343344
set(file config.w32.h)
344345
else()
346+
set(PHP_CONFIG_HEADER_GUARD "PHP_CONFIG_H")
345347
set(PHP_CONFIG_H_WINDOWS 0)
346348
set(file php_config.h)
347349
set(HAVE_BUILD_DEFS_H TRUE)

cmake/main/cmake/php_config.h.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#if !defined(PHP_CONFIG_H) || @PHP_CONFIG_H_WINDOWS@
1+
#ifndef @PHP_CONFIG_HEADER_GUARD@
2+
#define @PHP_CONFIG_HEADER_GUARD@
23

34
#if @PHP_CONFIG_H_WINDOWS@
45
/* Define the minimum supported version */
@@ -28,8 +29,6 @@
2829
# define STDOUT_FILENO 1
2930
# define STDERR_FILENO 2
3031
#else
31-
# define PHP_CONFIG_H
32-
3332
# if defined(__GNUC__) && __GNUC__ >= 4
3433
# define ZEND_API __attribute__ ((visibility("default")))
3534
# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
@@ -688,4 +687,4 @@
688687
# include <string.h>
689688
#endif
690689

691-
#endif /* PHP_CONFIG_H */
690+
#endif /* @PHP_CONFIG_HEADER_GUARD@ */

0 commit comments

Comments
 (0)