Merge pull request #38 from mlocati/apcu-php5.6

Support apcu for PHP 5.6
pull/39/head
Michele Locati 2019-10-10 11:59:00 +02:00 committed by GitHub
commit 0db48925ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
amqp 5.6 7.0 7.1 7.2 7.3
apcu 7.0 7.1 7.2 7.3
apcu 5.6 7.0 7.1 7.2 7.3
bcmath 5.6 7.0 7.1 7.2 7.3
bz2 5.6 7.0 7.1 7.2 7.3
calendar 5.6 7.0 7.1 7.2 7.3

View File

@ -48,7 +48,7 @@ getPHPInstalledModules () {
Zend\ OPcache)
getPHPInstalledModules_moduleNormalized='opcache'
;;
*\ *|A*|*B*|*C*|*D*|*E*|*F*|*G*|*H*|*I*|*J*|*K*|*L*|*M*|*N*|*O*|*P*|*Q*|*R*|*S*|*T*|*U*|*V*|*W*|*X*|*Y*|*Z*)
*\ *|*A*|*B*|*C*|*D*|*E*|*F*|*G*|*H*|*I*|*J*|*K*|*L*|*M*|*N*|*O*|*P*|*Q*|*R*|*S*|*T*|*U*|*V*|*W*|*X*|*Y*|*Z*)
printf '### WARNING Unrecognized module name: %s ###\n' "${getPHPInstalledModules_module}" >&2
;;
*)
@ -425,6 +425,11 @@ installPECLModule () {
installPECLModule_actual="${2}"
installPECLModule_stdin=''
case "${2}" in
apcu)
if test $1 -le 506; then
installPECLModule_actual="${2}-4.0.11"
fi
;;
mcrypt)
if test $1 -ge 702; then
installPECLModule_stdin='autodetect'