fix: 解决 PHP8 安装 swoole 失败的问题 (#1045)

This commit is contained in:
zhengkunwang
2024-03-06 11:36:30 +08:00
committed by GitHub
parent ec4da4f1e2
commit abadcd44db
3 changed files with 3 additions and 15 deletions
@@ -609,11 +609,7 @@ fi
if [[ -z "${EXTENSIONS##*,swoole,*}" ]]; then
echo "---------- Install swoole ----------"
apk add --no-cache libstdc++
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
installExtensionFromTgz swoole-5.0.2 --enable-openssl --enable-http2
fi
install-php-extensions swoole
fi
if [[ -z "${EXTENSIONS##*,zip,*}" ]]; then
@@ -609,11 +609,7 @@ fi
if [[ -z "${EXTENSIONS##*,swoole,*}" ]]; then
echo "---------- Install swoole ----------"
apk add --no-cache libstdc++
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
installExtensionFromTgz swoole-5.0.2 --enable-openssl --enable-http2
fi
install-php-extensions swoole
fi
if [[ -z "${EXTENSIONS##*,zip,*}" ]]; then
@@ -609,11 +609,7 @@ fi
if [[ -z "${EXTENSIONS##*,swoole,*}" ]]; then
echo "---------- Install swoole ----------"
apk add --no-cache libstdc++
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
installExtensionFromTgz swoole-5.0.2 --enable-openssl --enable-http2
fi
install-php-extensions swoole
fi
if [[ -z "${EXTENSIONS##*,zip,*}" ]]; then