From a886359e9433cd30e446b21cee9eb612351e4f85 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 23 Jul 2024 21:35:43 +0800 Subject: [PATCH] Update yar.sh --- plugins/php-apt/versions/common/yar.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/php-apt/versions/common/yar.sh b/plugins/php-apt/versions/common/yar.sh index a73a0a068..686f1cce0 100755 --- a/plugins/php-apt/versions/common/yar.sh +++ b/plugins/php-apt/versions/common/yar.sh @@ -17,10 +17,18 @@ sysName=`uname` LIBNAME=yar LIBV=2.3.2 -if [ `echo "$version < 7.0"|bc` -eq 1 ];then +if [[ "$version" =~ "8.0" ]];then + LIBV=3.3.6 +fi + +if [[ "$version" =~ "5.0" ]];then LIBV=1.2.5 fi +if [[ "$version" =~ "7.0" ]];then + LIBV=2.3.2 +fi + extVer=`bash $curPath/lib.sh $version` extFile=/usr/lib/php/${extVer}/${LIBNAME}.so