From c516929275abe93ec10b617015696fe35890f9cc Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 5 Nov 2021 23:42:30 +0100 Subject: [PATCH] Enable curl for recent swoole versions (#462) Test: swoole --- install-php-extensions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 2d11448..4520d3e 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2596,7 +2596,7 @@ installRemoteModule() { # enable json support? addConfigureOption enable-swoole-json yes # enable curl support? - if test $PHP_MAJMINPAT_VERSION -ne 80000; then + if test $PHP_MAJMINPAT_VERSION -ne 80000 || test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then addConfigureOption enable-swoole-curl yes else # https://github.com/swoole/swoole-src/issues/3977#issuecomment-754755521