From f36e6490a7540c28aa33707d0500d09abb0c4f5f Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 17 Dec 2020 08:48:56 +0100 Subject: [PATCH] Fix installing AMQP on non-Debian PHP 5.5 images Test: amqp --- install-php-extensions | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 3e9ab7c..5a77df3 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1351,14 +1351,14 @@ installPECLModule() { installPECLModule_cppflags='' case "$installPECLModule_module" in amqp) - case "$DISTRO_VERSION" in - debian@8) - if test -z "$installPECLModule_version"; then - # in Debian Jessie we have librammitmq version 0.5.2 - installPECLModule_version=1.9.3 - fi - ;; - esac + if test -z "$installPECLModule_version"; then + if test "$DISTRO_VERSION" = debian@8; then + # in Debian Jessie we have librammitmq version 0.5.2 + installPECLModule_version=1.9.3 + elif test $PHP_MAJMIN_VERSION -le 505; then + installPECLModule_version=1.9.4 + fi + fi ;; apcu) if test -z "$installPECLModule_version"; then