From ef69c94206cba62cabcf0581c687ffcaae694457 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 24 Nov 2022 14:02:19 +0100 Subject: [PATCH] Fix installing zstd on PHP 5.x (#664) --- install-php-extensions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index 7279e89..e927605 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3559,6 +3559,13 @@ installRemoteModule() { ;; esac ;; + zstd) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installRemoteModule_version=0.11.0 + fi + fi + ;; esac if test $installRemoteModule_manuallyInstalled -eq 0; then if test -n "$installRemoteModule_path"; then