[minor] Normalize PHP version checking

Test: igbinary, mailparse, memcache, memcached, pcov, propro, protobuf, pthreads, raphf, uopz, yaml, zookeeper
pull/322/head
Michele Locati 2021-03-13 21:12:11 +01:00
parent cde8dfab5f
commit 70dae9f4c3
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 16 additions and 16 deletions

View File

@ -1657,7 +1657,7 @@ installRemoteModule() {
;;
igbinary)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.0.8
fi
fi
@ -1698,23 +1698,23 @@ installRemoteModule() {
;;
mailparse)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.1.6
fi
fi
;;
memcache)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.2.7
elif test $PHP_MAJMIN_VERSION -lt 800; then
elif test $PHP_MAJMIN_VERSION -le 704; then
installRemoteModule_version=4.0.5.2
fi
fi
;;
memcached)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.2.0
fi
fi
@ -1812,7 +1812,7 @@ installRemoteModule() {
;;
pcov)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 701; then
if test $PHP_MAJMIN_VERSION -le 700; then
installRemoteModule_version=0.9.0
fi
fi
@ -1836,28 +1836,28 @@ installRemoteModule() {
;;
propro)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.0.2
fi
fi
;;
protobuf)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=3.12.4
fi
fi
;;
pthreads)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.0.10
fi
fi
;;
raphf)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.1.2
fi
fi
@ -2118,9 +2118,9 @@ installRemoteModule() {
;;
uopz)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=2.0.7
elif test $PHP_MAJMIN_VERSION -lt 701; then
elif test $PHP_MAJMIN_VERSION -le 700; then
installRemoteModule_version=5.0.2
fi
fi
@ -2164,9 +2164,9 @@ installRemoteModule() {
;;
yaml)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.3.1
elif test $PHP_MAJMIN_VERSION -lt 701; then
elif test $PHP_MAJMIN_VERSION -le 700; then
installRemoteModule_version=2.0.4
fi
fi
@ -2209,9 +2209,9 @@ installRemoteModule() {
;;
esac
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=0.5.0
elif test $PHP_MAJMIN_VERSION -gt 702; then
elif test $PHP_MAJMIN_VERSION -ge 703; then
installRemoteModule_version=beta
fi
fi