php 53,56,71修复版。

This commit is contained in:
midoks
2020-07-11 23:47:58 +08:00
parent f752d99e8b
commit f6b9e2da54
42 changed files with 358 additions and 103 deletions
+9 -3
View File
@@ -13,11 +13,17 @@ sourcePath=${serverPath}/source/php
LIBNAME=xdebug
LIBV=2.7.0
sysName=`uname`
actionType=$1
version=$2
extFile=$serverPath/php/${version}/lib/php/extensions/no-debug-non-zts-20160303/${LIBNAME}.so
sysName=`uname`
if [ "$sysName" == "Darwin" ];then
BAK='_bak'
else
BAK=''
fi
Install_lib()
{
isInstall=`cat $serverPath/php/$version/etc/php.ini|grep "${LIBNAME}.so"`
@@ -70,8 +76,8 @@ Uninstall_lib()
return
fi
sed -i '_bak' '/${LIBNAME}.so/d' $serverPath/php/$version/etc/php.ini
sed -i '_bak' '/${LIBNAME}/d' $serverPath/php/$version/etc/php.ini
sed -i $BAK '/${LIBNAME}.so/d' $serverPath/php/$version/etc/php.ini
sed -i $BAK '/${LIBNAME}/d' $serverPath/php/$version/etc/php.ini
rm -f $extFile
$serverPath/php/init.d/php$version reload