From ed1957624cd92d3805d6cf4c4c8a7bc78b010acb Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 3 Dec 2020 17:04:54 +0100 Subject: [PATCH] Fix installation of gRPC on PHP 5.x, support gRPC on PHP 8 --- data/supported-extensions | 2 +- install-php-extensions | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data/supported-extensions b/data/supported-extensions index d9aeeb4..c308dbe 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -14,7 +14,7 @@ gd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 gettext 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 gmagick 5.5 5.6 7.0 7.1 7.2 7.3 7.4 gmp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 -grpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +grpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 http 5.5 5.6 7.0 7.1 7.2 7.3 7.4 igbinary 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 imagick 5.5 5.6 7.0 7.1 7.2 7.3 7.4 diff --git a/install-php-extensions b/install-php-extensions index ca3d047..5dc9014 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1197,6 +1197,13 @@ installPECLModule() { fi fi ;; + grpc) + if test -z "$installPECLModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installPECLModule_version=1.33.1 + fi + fi + ;; http) installPECLModule_module=pecl_http if test -z "$installPECLModule_version"; then