From 51f905db88f1c8f1635e931ee0dcff01a9e9c1f8 Mon Sep 17 00:00:00 2001 From: Michael Gooden Date: Thu, 6 Feb 2025 13:15:54 +0200 Subject: [PATCH] Enable Swoole curl-native on Alpine (#1046) --- install-php-extensions | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 8d20648..e3a3b94 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -4126,12 +4126,6 @@ installRemoteModule() { fi ;; 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 installRemoteModule_zts=yes else @@ -4139,6 +4133,7 @@ installRemoteModule() { fi installRemoteModule_sqlite=yes installRemoteModule_iouring=no + installRemoteModule_curl=yes case "$DISTRO" in alpine) if test $DISTRO_MAJMIN_VERSION -lt 317; then @@ -4157,6 +4152,10 @@ installRemoteModule() { esac ;; 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 # we need sqlite3 >= 3.7.7 installRemoteModule_sqlite=no