diff --git a/plugins/php/versions/common/swoole.sh b/plugins/php/versions/common/swoole.sh index 826b27559..84619f695 100755 --- a/plugins/php/versions/common/swoole.sh +++ b/plugins/php/versions/common/swoole.sh @@ -32,8 +32,13 @@ if [ "$version" -eq "82" ];then exit 1 fi -NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-debug-non-zts` -extFile=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so +LIB_PATH_NAME=lib +if [ -f $serverPath/php/${version}/lib64 ];then + LIB_PATH_NAME=lib64 +fi + +NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/php/extensions | grep no-debug-non-zts` +extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so sysName=`uname` if [ "$sysName" == "Darwin" ];then