Topic: ssh2.sftp breaks php 5.6.30

I know there was an earlier post regarding php 5.6.28 breaking with ssh2.sftp.  However, we have installed php 5.6.30 and are getting:

fopen(ssh2.sftp......:failed to open stream errors.

Am trying to update php56-php-pecl-ssh2-0.13-3 but am having difficulty.  We are running CentOS 6.8.

thanks!

Re: ssh2.sftp breaks php 5.6.30

According to user feedback the 5.6.28 regression is fixed using latest ssh2 build

=> https://forum.remirepo.net/viewtopic.php?pid=9167

> Am trying to update php56-php-pecl-ssh2-0.13-3 but am having difficulty.  We are running CentOS 6.8.

What do you mean ?
Which version are installed ? (rpm -qa php\* | sort)
Small reproducer ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: ssh2.sftp breaks php 5.6.30

These are versions installed (rpm -qa php\* | sort:

rpm -qa php\*|sort
php-5.6.30-1.el6.remi.x86_64
php56-php-common-5.6.30-1.el6.remi.x86_64
php56-php-pecl-jsonc-1.3.10-1.el6.remi.x86_64
php56-php-pecl-ssh2-0.13-3.el6.remi.x86_64
php56-php-pecl-zip-1.14.0-1.el6.remi.x86_64
php56-runtime-2.1-5.el6.remi.x86_64
php-bcmath-5.6.30-1.el6.remi.x86_64
php-cli-5.6.30-1.el6.remi.x86_64
php-common-5.6.30-1.el6.remi.x86_64
php-devel-5.6.30-1.el6.remi.x86_64
php-domxml-php4-php5-1.21.2-1.el6.noarch
php-gd-5.6.30-1.el6.remi.x86_64
php-ldap-5.6.30-1.el6.remi.x86_64
php-magickwand-1.0.9.2-11.el6.remi.5.6.x86_64
php-mbstring-5.6.30-1.el6.remi.x86_64
php-mcrypt-5.6.30-1.el6.remi.x86_64
php-mssql-5.6.30-1.el6.remi.x86_64
php-mysqlnd-5.6.30-1.el6.remi.x86_64
php-odbc-5.6.30-1.el6.remi.x86_64
php-pdo-5.6.30-1.el6.remi.x86_64
php-pear-1.10.4-1.el6.remi.noarch
php-pecl-imagick-3.4.3-1.el6.remi.5.6.x86_64
php-pecl-jsonc-1.3.10-2.el6.remi.5.6.x86_64
php-pecl-jsonc-devel-1.3.10-2.el6.remi.5.6.x86_64
php-pecl-zip-1.14.0-1.el6.remi.5.6.x86_64
php-pgsql-5.6.30-1.el6.remi.x86_64
php-process-5.6.30-1.el6.remi.x86_64
php-soap-5.6.30-1.el6.remi.x86_64
php-xml-5.6.30-1.el6.remi.x86_64
php-xmlrpc-5.6.30-1.el6.remi.x86_64

Followed link to php-pecl-ssh2-0.13-3 but packages listed are only for el7.  We are running el6.
To fix do we have to downgrade to php 5.6.27 or .28?

Thanks!

Re: ssh2.sftp breaks php 5.6.30

Just follow the wizard instructions (top right link)

You obviously don't need php56-* packages and can remove them
You need php-pecl-ssh2

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: ssh2.sftp breaks php 5.6.30

Awesome!  All fixed.

I removed php56* packages then, yum install php-pecl-ssh2, and then restarted apache.

Had an extra extension=ssh2.so line in my php.ini which I didn't need so I got rid of that too.

No more error messages!

thanks!

Re: ssh2.sftp breaks php 5.6.30

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi