From 9f22693f033e319b2b2d20401e6c1bf40aef93a7 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 2 Nov 2023 17:08:42 +0100 Subject: [PATCH] Fix installing protobuf on PHP 7.x (#827) --- install-php-extensions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index a57219a..9473e06 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3197,8 +3197,10 @@ installRemoteModule() { ;; protobuf) 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 + elif test $PHP_MAJMIN_VERSION -lt 800; then + installRemoteModule_version=3.24.4 fi fi ;;