diff --git a/php-install.sh b/php-install.sh index fd13248..f135d09 100644 --- a/php-install.sh +++ b/php-install.sh @@ -3,10 +3,11 @@ set -eu apk add --no-cache unixodbc-dev gmp-dev yaml-dev ldb-dev libldap openldap-dev pcre-dev libxslt-dev imap-dev sudo git libpng libjpeg libpq libxml2 mysql-client openssh-client rsync patch bash imagemagick libzip-dev \ imagemagick-libs imagemagick-dev librdkafka-dev autoconf g++ make icu-dev libpng-dev libjpeg-turbo-dev postgresql-dev libxml2-dev bzip2-dev icu icu-dev libmemcached-dev linux-headers $PHPIZE_DEPS -if [ $PHP_VERSION = "8.1" ] || [ $PHP_VERSION = "8.2" ] || [ $PHP_VERSION = "8.3" ] -then +case $PHP_VERSION in + 8.3|8.2|8.1) apk add --no-cache mpdecimal-dev -else + ;; + *) wget https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.5.1.tar.gz tar -xvzf mpdecimal-2.5.1.tar.gz cd mpdecimal-2.5.1 @@ -15,7 +16,8 @@ else make install cd .. rm -rf mpdecimal-2.5.1* -fi + ;; +esac pecl channel-update pecl.php.net