Skip to content

Commit

Permalink
Add support for swoole 6.0.0
Browse files Browse the repository at this point in the history
Test: swoole
  • Loading branch information
mlocati committed Jun 24, 2024
1 parent fafb433 commit dec2372
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -3827,6 +3827,11 @@ installRemoteModule() {
;;
esac
fi
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 800; then
installRemoteModule_version=5.1.3
fi
fi
else
installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")"
fi
Expand All @@ -3850,7 +3855,58 @@ installRemoteModule() {
else
installRemoteModule_curl=yes
fi
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 5.0.1) -ge 0; then
if test $PHP_THREADSAFE -eq 1; then
installRemoteModule_zts=yes
else
installRemoteModule_zts=no
fi
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 6.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 $installRemoteModule_curl
# enable cares support?
addConfigureOption enable-cares yes
# enable brotli support?
addConfigureOption enable-brotli yes
# enable PostgreSQL database support?
addConfigureOption enable-swoole-pgsql yes
# enable ODBC database support?
addConfigureOption with-swoole-odbc yes
# enable Oracle database support?
addConfigureOption with-swoole-oracle yes
# enable Sqlite database support?
addConfigureOption enable-swoole-sqlite yes
# enable swoole thread support (need php zts support)?
addConfigureOption enable-swoole-thread $installRemoteModule_zts
# enable iouring for file async support?
addConfigureOption enable-iouring yes
elif test $(compareVersions "$installRemoteModule_version" 5.1.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 $installRemoteModule_curl
# enable cares support?
addConfigureOption enable-cares yes
# enable brotli support?
addConfigureOption enable-brotli yes
# enable PostgreSQL database support?
addConfigureOption enable-swoole-pgsql yes
# enable ODBC database support?
addConfigureOption with-swoole-odbc yes
# enable Oracle database support?
addConfigureOption with-swoole-oracle yes
# enable Sqlite database support?
addConfigureOption enable-swoole-sqlite yes
elif test $(compareVersions "$installRemoteModule_version" 5.0.1) -ge 0; then
# enable sockets supports?
addConfigureOption enable-sockets $installRemoteModule_sockets
# enable openssl support?
Expand Down

0 comments on commit dec2372

Please sign in to comment.