Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

[2016-11-07 21:44 UTC] ben at indietorrent dot org

I found a few minutes in which to reproduce the issue with the most basic example possible, and PHP still segfaults:
<?php
$ssh = ssh2_connect('localhost', 22, array('hostkey'=>'ssh-rsa,ssh-dss'));
// The segfault happens with both password and public-key authentication.
#ssh2_auth_pubkey_file($ssh, 'root', '/root/.ssh/php-ssh2-test.pub', '/root/.ssh/php-ssh2-test');
ssh2_auth_password($ssh, 'root', 'password');
$sftp = ssh2_sftp($ssh);
ssh2_disconnect($ssh);
exit;
P.S. The ssh_disconnect() function isn't documented in the PHP manual. I do realize that ssh2-1.0 is still considered to be non-stable, but given that ssh-0.13 isn't API-compatible with PHP 5, it seems prudent to add it to the manual and note its requirement to be PECL ssh2 >= 1.0.