From e13908605f7b0c0aaa9796da630ef34010c2fc45 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 23 Feb 2023 12:55:53 +0100 Subject: [PATCH] Update openswoole configure options to version 22.0.0 (#701) --- install-php-extensions | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index a9ba98a..ed1a88b 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2994,13 +2994,20 @@ installRemoteModule() { addConfigureOption enable-http2 yes # enable mysqlnd support? addConfigureOption enable-mysqlnd yes - # enable json support? - addConfigureOption enable-swoole-json yes - # enable curl support? - addConfigureOption enable-swoole-curl yes - if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '4.8.0') -ge 0; then + if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '22.8.0') -ge 0; then + #enable hook curl support? + addConfigureOption enable-hook-curl yes # enable postgres support? addConfigureOption with-postgres yes + else + # enable json support? + addConfigureOption enable-swoole-json yes + # enable curl support? + addConfigureOption enable-swoole-curl yes + if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '4.8.0') -ge 0; then + # enable postgres support? + addConfigureOption with-postgres yes + fi fi ;; parallel)