Fix installing protobuf on PHP 7.x (#827)

pull/831/head 2.1.61
Michele Locati 2023-11-02 17:08:42 +01:00 committed by GitHub
parent 428a3b6b2b
commit 9f22693f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3197,8 +3197,10 @@ installRemoteModule() {
;; ;;
protobuf) protobuf)
if test -z "$installRemoteModule_version"; then if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then if test $PHP_MAJMIN_VERSION -lt 700; then
installRemoteModule_version=3.12.4 installRemoteModule_version=3.12.4
elif test $PHP_MAJMIN_VERSION -lt 800; then
installRemoteModule_version=3.24.4
fi fi
fi fi
;; ;;