1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Add support for amqp with PHP 8.0

This commit is contained in:
Michele Locati 2020-12-22 19:10:28 +01:00
parent 3edb83d434
commit a87095a3d6
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 16 additions and 2 deletions

View file

@ -1321,7 +1321,18 @@ installRemoteModule() {
case "$installRemoteModule_module" in
amqp)
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
installRemoteModule_version=1.9.3
elif test $PHP_MAJMIN_VERSION -le 505; then
@ -1952,6 +1963,9 @@ configureInstaller() {
if test "${PHP_MODULE_TO_INSTALL#@}" != "$PHP_MODULE_TO_INSTALL"; then
continue
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
continue
fi