From 08270a2dd57c633a5cee5f4e198f5de440d5442c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 31 Jan 2021 11:26:32 +0100 Subject: [PATCH] Fix installing ssh2 on PHP 7.4 --- install-php-extensions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index e8c201f..9830b2a 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1880,6 +1880,13 @@ installRemoteModule() { fi ;; ssh2) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installRemoteModule_version=0.13 + elif test $PHP_MAJMIN_VERSION -le 704; then + installRemoteModule_version=1.2 + fi + fi if test -z "$installRemoteModule_version" && test $PHP_MAJMIN_VERSION -ge 800; then installRemoteModule_src="$(getPackageSource https://codeload.github.com/php/pecl-networking-ssh2/tar.gz/93265d71bdeb23350e8320126c7949ed791310df)" cd -- "$installRemoteModule_src"