Enable Swoole curl-native on Alpine (#1046)

pull/1067/head 2.7.23
Michael Gooden 2025-02-06 13:15:54 +02:00 committed by GitHub
parent 2a68a3b764
commit 51f905db88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 6 deletions

View File

@ -4126,12 +4126,6 @@ installRemoteModule() {
fi fi
;; ;;
esac esac
if test $PHP_MAJMIN_VERSION -ge 800; then
# see https://github.com/swoole/swoole-src/issues/5365
installRemoteModule_curl=no
else
installRemoteModule_curl=yes
fi
if test $PHP_THREADSAFE -eq 1; then if test $PHP_THREADSAFE -eq 1; then
installRemoteModule_zts=yes installRemoteModule_zts=yes
else else
@ -4139,6 +4133,7 @@ installRemoteModule() {
fi fi
installRemoteModule_sqlite=yes installRemoteModule_sqlite=yes
installRemoteModule_iouring=no installRemoteModule_iouring=no
installRemoteModule_curl=yes
case "$DISTRO" in case "$DISTRO" in
alpine) alpine)
if test $DISTRO_MAJMIN_VERSION -lt 317; then if test $DISTRO_MAJMIN_VERSION -lt 317; then
@ -4157,6 +4152,10 @@ installRemoteModule() {
esac esac
;; ;;
debian) debian)
if test $PHP_MAJMIN_VERSION -ge 800; then
# see https://github.com/swoole/swoole-src/issues/5365
installRemoteModule_curl=no
fi
if test $DISTRO_MAJMIN_VERSION -lt 1200; then if test $DISTRO_MAJMIN_VERSION -lt 1200; then
# we need sqlite3 >= 3.7.7 # we need sqlite3 >= 3.7.7
installRemoteModule_sqlite=no installRemoteModule_sqlite=no