1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Fix GD and ZIP configuration with PHP 7.4.0

Test: gd, zip
This commit is contained in:
Michele Locati 2019-12-06 17:12:05 +01:00
parent e6288d0a1d
commit 16eeec2dec
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 15 additions and 9 deletions

View file

@ -327,12 +327,14 @@ installBundledModule () {
printf '### INSTALLING BUNDLED MODULE %s ###\n' "${2}"
case "${2}" in
gd)
if test $1 -lt 700; then
if test $1 -le 506; then
docker-php-ext-configure gd --with-gd --with-vpx-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf
elif test $1 -lt 702; then
elif test $1 -le 701; then
docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf
else
elif test $1 -le 703; then
docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir
else
docker-php-ext-configure gd --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype
fi
;;
gmp)
@ -386,7 +388,11 @@ installBundledModule () {
cmake ..
make install
cd -
docker-php-ext-configure zip --with-libzip
if test $1 -le 703; then
docker-php-ext-configure zip --with-libzip
else
docker-php-ext-configure zip --with-zip
fi
;;
esac
docker-php-ext-install -j$(nproc) "${2}"