Skip to content

Commit db29dfe

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 728b31a + 60db440 commit db29dfe

File tree

5 files changed

+17
-23
lines changed

5 files changed

+17
-23
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
@@ -342,9 +342,11 @@ endfunction()
342342
# Configure main configuration header (php_config.h, config.w32.h).
343343
function(_php_main_configure_php_config)
344344
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
345+
set(PHP_CONFIG_HEADER_GUARD "CONFIG_W32_H")
345346
set(PHP_CONFIG_H_WINDOWS 1)
346347
set(file config.w32.h)
347348
else()
349+
set(PHP_CONFIG_HEADER_GUARD "PHP_CONFIG_H")
348350
set(PHP_CONFIG_H_WINDOWS 0)
349351
set(file php_config.h)
350352
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")))
@@ -698,4 +697,4 @@
698697
# include <string.h>
699698
#endif
700699

701-
#endif /* PHP_CONFIG_H */
700+
#endif /* @PHP_CONFIG_HEADER_GUARD@ */

docs/cmake/configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,25 +1526,25 @@ A list of Autoconf `configure` command-line configuration options, Windows
15261526
<td>&emsp;--without-ftp-ssl</td>
15271527
<td>N/A</td>
15281528
<td>PHP_EXT_FTP_SSL=OFF</td>
1529-
<td>default, PHP >= 8.4</td>
1529+
<td>PHP >= 8.4 (default in Autotools)</td>
15301530
</tr>
15311531
<tr>
15321532
<td>&emsp;--with-ftp-ssl</td>
15331533
<td>N/A</td>
15341534
<td>PHP_EXT_FTP_SSL=ON</td>
1535-
<td>PHP >= 8.4</td>
1535+
<td>PHP >= 8.4 (default in CMake)</td>
15361536
</tr>
15371537
<tr>
15381538
<td>&emsp;--without-openssl-dir</td>
15391539
<td>N/A</td>
15401540
<td>PHP_EXT_FTP_SSL=OFF</td>
1541-
<td>default, PHP <= 8.3</td>
1541+
<td>PHP <= 8.3 (default in Autotools)</td>
15421542
</tr>
15431543
<tr>
15441544
<td>&emsp;--with-openssl-dir</td>
15451545
<td>N/A</td>
15461546
<td>PHP_EXT_FTP_SSL=ON</td>
1547-
<td>PHP <= 8.3</td>
1547+
<td>PHP <= 8.3 (default in CMake)</td>
15481548
</tr>
15491549
<tr>
15501550
<td>--disable-gd</td>

docs/cmake/ext/ftp.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ Build extension as shared.
2323

2424
## PHP_EXT_FTP_SSL
2525

26-
* Default: `OFF`
26+
* Default: `ON`
2727
* Values: `ON|OFF`
2828

29-
Explicitly enable FTP over SSL support when building without openssl extension
30-
(`PHP_EXT_OPENSSL=OFF`) or when using `phpize`. If the `openssl` extension is
31-
enabled at the configure step (`PHP_EXT_OPENSSL=ON`), FTP-SSL is enabled
32-
implicitly regardless of this option.
29+
Explicitly enable or disable FTP over SSL support.

0 commit comments

Comments
 (0)