From 15d609d02bcb3769eacf724155b791b35be88d6d Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 10 Jul 2022 23:54:26 +0800 Subject: [PATCH] Update intl.sh --- plugins/php/versions/common/intl.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/php/versions/common/intl.sh b/plugins/php/versions/common/intl.sh index 0450ac269..fce18b129 100755 --- a/plugins/php/versions/common/intl.sh +++ b/plugins/php/versions/common/intl.sh @@ -27,6 +27,13 @@ else BAK='' fi +OPTIONS='' +if [ "$version" -lt "70" ];then + cd $serverPath/mdserver-web/plugins/php/lib && /bin/bash icu.sh + OPTIONS="--with-icu-dir=${serverPath}/lib/icu" +fi + + Install_lib() { @@ -45,7 +52,7 @@ Install_lib() cd $sourcePath/php${version}/ext/${LIBNAME} $serverPath/php/$version/bin/phpize - ./configure --with-php-config=$serverPath/php/$version/bin/php-config + ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS make && make install && make clean