From 16b7be63e01bb8e223148db18d2a8de1819ce207 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 25 Jan 2024 15:42:08 +0100 Subject: [PATCH] Add support for installing FTP with SSL on PHP 8.2+ (#871) --- data/supported-extensions | 1 + install-php-extensions | 9 +++++++++ scripts/tests/ftp | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 scripts/tests/ftp diff --git a/data/supported-extensions b/data/supported-extensions index 0fe5265..880434b 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -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 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 +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 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 diff --git a/install-php-extensions b/install-php-extensions index f342885..ba075e0 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -811,6 +811,12 @@ buildRequiredPackageLists() { ffi@debian) 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) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetype libjpeg-turbo libpng libxpm" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetype-dev libjpeg-turbo-dev libpng-dev libxpm-dev" @@ -2401,6 +2407,9 @@ EOF cd - >/dev/null fi ;; + ftp) + docker-php-ext-configure ftp --with-openssl-dir=/usr + ;; gd) 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 diff --git a/scripts/tests/ftp b/scripts/tests/ftp new file mode 100755 index 0000000..4182e40 --- /dev/null +++ b/scripts/tests/ftp @@ -0,0 +1,15 @@ +#!/usr/bin/env php +