[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) igbinary)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=2.0.8
fi fi
fi fi
@ -1698,23 +1698,23 @@ installRemoteModule() {
;; ;;
mailparse) mailparse)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=2.1.6
fi fi
fi fi
;; ;;
memcache) memcache)
if test -z "$installRemoteModule_version"; then 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 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 installRemoteModule_version=4.0.5.2
fi fi
fi fi
;; ;;
memcached) memcached)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=2.2.0
fi fi
fi fi
@ -1812,7 +1812,7 @@ installRemoteModule() {
;; ;;
pcov) pcov)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=0.9.0
fi fi
fi fi
@ -1836,28 +1836,28 @@ installRemoteModule() {
;; ;;
propro) propro)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=1.0.2
fi fi
fi fi
;; ;;
protobuf) protobuf)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=3.12.4
fi fi
fi fi
;; ;;
pthreads) pthreads)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=2.0.10
fi fi
fi fi
;; ;;
raphf) raphf)
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=1.1.2
fi fi
fi fi
@ -2118,9 +2118,9 @@ installRemoteModule() {
;; ;;
uopz) uopz)
if test -z "$installRemoteModule_version"; then 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 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 installRemoteModule_version=5.0.2
fi fi
fi fi
@ -2164,9 +2164,9 @@ installRemoteModule() {
;; ;;
yaml) yaml)
if test -z "$installRemoteModule_version"; then 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 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 installRemoteModule_version=2.0.4
fi fi
fi fi
@ -2209,9 +2209,9 @@ installRemoteModule() {
;; ;;
esac esac
if test -z "$installRemoteModule_version"; then 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 installRemoteModule_version=0.5.0
elif test $PHP_MAJMIN_VERSION -gt 702; then elif test $PHP_MAJMIN_VERSION -ge 703; then
installRemoteModule_version=beta installRemoteModule_version=beta
fi fi
fi fi