File tree Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Original file line number Diff line number Diff 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
3330cmake_minimum_required (VERSION 3.25...3.31)
@@ -58,10 +55,9 @@ cmake_dependent_option(
5855
5956cmake_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
Original file line number Diff line number Diff line change @@ -339,9 +339,11 @@ endfunction()
339339# Configure main configuration header (php_config.h, config.w32.h).
340340function (_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 )
Original file line number Diff line number Diff line change 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 */
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")))
688687# include <string.h>
689688#endif
690689
691- #endif /* PHP_CONFIG_H */
690+ #endif /* @PHP_CONFIG_HEADER_GUARD@ */
You can’t perform that action at this time.
0 commit comments