Add support for installing FTP with SSL on PHP 8.2+ (#871)

pull/872/head
Michele Locati 2024-01-25 15:42:08 +01:00 committed by GitHub
parent 627f3ae1d0
commit 16b7be63e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View File

@ -21,6 +21,7 @@ event 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
excimer 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 excimer 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
exif 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 exif 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
ffi 7.4 8.0 8.1 8.2 8.3 ffi 7.4 8.0 8.1 8.2 8.3
ftp 8.2 8.3
gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
gearman 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 gearman 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
geoip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 geoip 5.5 5.6 7.0 7.1 7.2 7.3 7.4

View File

@ -811,6 +811,12 @@ buildRequiredPackageLists() {
ffi@debian) ffi@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev"
;; ;;
ftp@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libevent-dev $buildRequiredPackageLists_libssldev"
;;
ftp@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libevent-dev $buildRequiredPackageLists_libssldev"
;;
gd@alpine) gd@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetype libjpeg-turbo libpng libxpm" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetype libjpeg-turbo libpng libxpm"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetype-dev libjpeg-turbo-dev libpng-dev libxpm-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetype-dev libjpeg-turbo-dev libpng-dev libxpm-dev"
@ -2401,6 +2407,9 @@ EOF
cd - >/dev/null cd - >/dev/null
fi fi
;; ;;
ftp)
docker-php-ext-configure ftp --with-openssl-dir=/usr
;;
gd) gd)
if test $PHP_MAJMIN_VERSION -le 506; then if test $PHP_MAJMIN_VERSION -le 506; then
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-vpx-dir docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-vpx-dir

15
scripts/tests/ftp Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env php
<?php
require_once __DIR__ . '/_bootstrap.php';
$rc = 0;
echo 'Checking if ftp_ssl_connect() exists... ';
if (!function_exists('ftp_ssl_connect')) {
$rc = 1;
echo "NO!\n";
} else {
echo "yes.\n";
}
exit($rc);