1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Support installing SSH2 on PHP 8

This commit is contained in:
Michele Locati 2021-01-31 11:20:02 +01:00
parent c64e03faaf
commit 5eda6e52f8
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 14 additions and 2 deletions

View file

@ -1093,7 +1093,7 @@ setTargetTriplet() {
# The number of processors to be used
getCompilationProcessorCount() {
case "$1" in
amqp | bcmath | bz2 | calendar | exif | gd | gettext | grpc | http | imagick | intl | mysqli | opcache | pcntl | pdo_mysql | protobuf | redis | soap | sockets | tidy | xdebug | xsl | yaml | zip)
amqp | bcmath | bz2 | calendar | exif | gd | gettext | grpc | http | imagick | intl | mysqli | opcache | pcntl | pdo_mysql | protobuf | redis | ssh2 | soap | sockets | tidy | xdebug | xsl | yaml | zip)
# These extensions support parallel compilation
getProcessorCount
;;
@ -1879,6 +1879,18 @@ installRemoteModule() {
addConfigureOption 'enable-redis-zstd' 'yes'
fi
;;
ssh2)
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"
phpize
./configure
make -j$(getCompilationProcessorCount)
make install
cd - >/dev/null
installRemoteModule_manuallyInstalled=1
fi
;;
snuffleupagus)
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=0.7.0