Fix installing ssh2 on PHP 7.4

pull/285/head
Michele Locati 2021-01-31 11:26:32 +01:00
parent 5eda6e52f8
commit 08270a2dd5
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 7 additions and 0 deletions

View File

@ -1880,6 +1880,13 @@ installRemoteModule() {
fi fi
;; ;;
ssh2) 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 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)" installRemoteModule_src="$(getPackageSource https://codeload.github.com/php/pecl-networking-ssh2/tar.gz/93265d71bdeb23350e8320126c7949ed791310df)"
cd -- "$installRemoteModule_src" cd -- "$installRemoteModule_src"