|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-03-23 19:51 UTC] ricardo at banak dot com
Description:
------------
When trying to use $sftp=ssh2_sftp($connection) the script aborts with:
"ool www: channel.c:2466: _libssh2_channel_free: Assertion `session' failed."
I'm using:
- php-pecl-ssh2.x86_64 1.2-1.el7.remi.7.4
- libssh2.x86_64 1.8.0-3.el7
- openssl.x86_64 1:1.0.2k-19.el7
Test script:
---------------
$connection = ssh2_connect('ssh.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
I cannot reproduce this assertion failure with the given test script (neither with ssh2 1.2 nor with current tip of master; libssh 1.9.0). However, I can reproduce the assertion failure, if I add ssh2_disconnect($connection); at the end of the script. This would be a duplicate of bug #79631 then. Please confirm whether you had called ssh2_disconnect() or not.