From 83457983c7545ab395c73ebb3387098d0ff61f01 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 21 Feb 2023 13:48:42 +0100 Subject: [PATCH] Add support for zookeeper on PHP 8.1/8.2 (#696) --- data/supported-extensions | 2 +- install-php-extensions | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/data/supported-extensions b/data/supported-extensions index bce6a2f..fdb86d8 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -126,5 +126,5 @@ yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 yar 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 zephir_parser 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 -zookeeper 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 +zookeeper 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 zstd 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index d7922a1..a9ba98a 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3593,12 +3593,13 @@ installRemoteModule() { if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then installRemoteModule_version=0.5.0 - else + elif test $PHP_MAJMIN_VERSION -le 700; then installRemoteModule_version=1.0.0 + else + installRemoteModule_version=alpha fi - else - installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")" fi + installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")" case "$DISTRO" in alpine) if ! test -f /usr/local/include/zookeeper/zookeeper.h; then