Merge pull request #233 from mlocati/amqp-php8.0

Add support for amqp with PHP 8.0
pull/234/head
Michele Locati 2020-12-22 19:29:24 +01:00 committed by GitHub
commit 98bd31ea5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
amqp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 amqp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
apcu 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 apcu 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0
apcu_bc 7.0 7.1 7.2 7.3 7.4 apcu_bc 7.0 7.1 7.2 7.3 7.4
bcmath 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 bcmath 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0

View File

@ -1321,7 +1321,18 @@ installRemoteModule() {
case "$installRemoteModule_module" in case "$installRemoteModule_module" in
amqp) amqp)
if test -z "$installRemoteModule_version"; then if test -z "$installRemoteModule_version"; then
if test "$DISTRO_VERSION" = debian@8; then if test $PHP_MAJMIN_VERSION -ge 800; then
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=df1241852b359cf12c346beaa68de202257efdf1
fi
installRemoteModule_src="$(getPackageSource https://codeload.github.com/php-amqp/php-amqp/tar.gz/$installRemoteModule_version)"
cd -- "$installRemoteModule_src"
phpize
./configure
make -j$(getProcessorCount)
make install
installRemoteModule_manuallyInstalled=1
elif test "$DISTRO_VERSION" = debian@8; then
# in Debian Jessie we have librammitmq version 0.5.2 # in Debian Jessie we have librammitmq version 0.5.2
installRemoteModule_version=1.9.3 installRemoteModule_version=1.9.3
elif test $PHP_MAJMIN_VERSION -le 505; then elif test $PHP_MAJMIN_VERSION -le 505; then
@ -1952,6 +1963,9 @@ configureInstaller() {
if test "${PHP_MODULE_TO_INSTALL#@}" != "$PHP_MODULE_TO_INSTALL"; then if test "${PHP_MODULE_TO_INSTALL#@}" != "$PHP_MODULE_TO_INSTALL"; then
continue continue
fi fi
if test "$PHP_MODULE_TO_INSTALL" = 'amqp' && test $PHP_MAJMIN_VERSION -ge 800; then
continue
fi
if test "$PHP_MODULE_TO_INSTALL" = 'imagick' && test $PHP_MAJMIN_VERSION -ge 800; then if test "$PHP_MODULE_TO_INSTALL" = 'imagick' && test $PHP_MAJMIN_VERSION -ge 800; then
continue continue
fi fi