From 56d8a624f0e8dbe584578bf2d6c0480dfc4acf42 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 31 Jan 2020 16:35:43 +0100 Subject: [PATCH] Support more extensions for PHP 5.5 --- data/supported-extensions | 4 ++-- install-php-extensions | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/data/supported-extensions b/data/supported-extensions index 7b3610a..adfa27e 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -10,7 +10,7 @@ exif 5.5 5.6 7.0 7.1 7.2 7.3 7.4 gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 gettext 5.5 5.6 7.0 7.1 7.2 7.3 7.4 gmagick 5.6 7.0 7.1 7.2 7.3 7.4 -gmp 5.6 7.0 7.1 7.2 7.3 7.4 +gmp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 grpc 5.6 7.0 7.1 7.2 7.3 7.4 http 5.6 7.0 7.1 7.2 7.3 7.4 igbinary 5.6 7.0 7.1 7.2 7.3 7.4 @@ -70,4 +70,4 @@ xdebug 5.6 7.0 7.1 7.2 7.3 7.4 xmlrpc 5.6 7.0 7.1 7.2 7.3 7.4 xsl 5.6 7.0 7.1 7.2 7.3 7.4 yaml 5.6 7.0 7.1 7.2 7.3 7.4 -zip 5.6 7.0 7.1 7.2 7.3 7.4 +zip 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 8fbb8a2..ea7f162 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -829,14 +829,12 @@ installBundledModule() { fi ;; gmp) - case "$1" in - 506) - if ! test -f /usr/include/gmp.h; then - ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h - UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/gmp.h" - fi - ;; - esac + if test $1 -le 506; then + if ! test -f /usr/include/gmp.h; then + ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h + UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/gmp.h" + fi + fi ;; imap) case "$(getDistroVersion)" in @@ -923,7 +921,9 @@ installBundledModule() { esac ;; zip) - if test $1 -le 703; then + if test $1 -le 505; then + docker-php-ext-configure zip + elif test $1 -le 703; then docker-php-ext-configure zip --with-libzip else docker-php-ext-configure zip --with-zip