Add support for swoole 5.0.0 (#617)

pull/619/head 1.5.34
Michele Locati 2022-08-03 17:03:15 +02:00 committed by GitHub
parent 9a11492f59
commit 95aa12a5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 3 deletions

View File

@ -1209,6 +1209,9 @@ buildRequiredPackageLists() {
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-ares2" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-ares2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-ares-dev" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-ares-dev"
fi fi
if test $PHP_MAJMIN_VERSION -ge 800; then
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
fi
;; ;;
sybase_ct@alpine) sybase_ct@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds" buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
@ -3138,6 +3141,8 @@ installRemoteModule() {
installRemoteModule_version=4.3.6 installRemoteModule_version=4.3.6
elif test $PHP_MAJMIN_VERSION -le 701; then elif test $PHP_MAJMIN_VERSION -le 701; then
installRemoteModule_version=4.5.10 installRemoteModule_version=4.5.10
elif test $PHP_MAJMIN_VERSION -le 704; then
installRemoteModule_version=4.8.11
fi fi
fi fi
if php --ri sockets >/dev/null 2>/dev/null; then if php --ri sockets >/dev/null 2>/dev/null; then
@ -3154,7 +3159,18 @@ installRemoteModule() {
fi fi
;; ;;
esac esac
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 5.0.0) -ge 0; then
# enable sockets supports?
addConfigureOption enable-sockets $installRemoteModule_sockets
# enable openssl support?
addConfigureOption enable-openssl $installRemoteModule_openssl
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable curl support?
addConfigureOption enable-swoole-curl yes
# enable cares support?
addConfigureOption enable-cares yes
elif test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then
# enable sockets supports? # enable sockets supports?
addConfigureOption enable-sockets $installRemoteModule_sockets addConfigureOption enable-sockets $installRemoteModule_sockets
# enable openssl support? # enable openssl support?
@ -3166,13 +3182,14 @@ installRemoteModule() {
# enable json support? # enable json support?
addConfigureOption enable-swoole-json yes addConfigureOption enable-swoole-json yes
# enable curl support? # enable curl support?
if test $PHP_MAJMINPAT_VERSION -ne 80000 || test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then if test $PHP_MAJMINPAT_VERSION -ne 80000 || test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then
addConfigureOption enable-swoole-curl yes addConfigureOption enable-swoole-curl yes
else else
# https://github.com/swoole/swoole-src/issues/3977#issuecomment-754755521 # https://github.com/swoole/swoole-src/issues/3977#issuecomment-754755521
addConfigureOption enable-swoole-curl no addConfigureOption enable-swoole-curl no
fi fi
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 4.8.11) -ge 0; then if test $(compareVersions "$installRemoteModule_version" 4.8.11) -ge 0; then
# enable cares support?
addConfigureOption enable-cares yes addConfigureOption enable-cares yes
fi fi
elif test $(compareVersions "$installRemoteModule_version" 4.4.0) -ge 0; then elif test $(compareVersions "$installRemoteModule_version" 4.4.0) -ge 0; then