From 3dbe416e6c1a083ab429b0cff883ed848585cab9 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 12 Apr 2018 12:26:02 +0200 Subject: [PATCH] Add support for mcrypt in PHP 7.2 --- data/supported-extensions | 2 +- install-php-extensions | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/supported-extensions b/data/supported-extensions index 5845a78..d96fe54 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -14,7 +14,7 @@ imap 5.6 7.0 7.1 7.2 interbase 5.6 7.0 7.1 7.2 intl 5.6 7.0 7.1 7.2 ldap 5.6 7.0 7.1 7.2 -mcrypt 5.6 7.0 7.1 +mcrypt 5.6 7.0 7.1 7.2 memcache 5.6 memcached 5.6 7.0 7.1 7.2 mysql 5.6 diff --git a/install-php-extensions b/install-php-extensions index 65e5f22..8522591 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -361,6 +361,12 @@ installPECLModule () { printf '### INSTALLING PECL MODULE %s ###\n' "${2}" installPECLModule_actual="${2}" case "${2}" in + mcrypt) + if test $1 -ge 702 + then + installPECLModule_actual="${2}-1.0.1" + fi + ;; memcached) if test $1 -lt 700 then