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"