|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78216 undefined symbol: php_ssh2_sftp_attr2ssb
Submitted: 2019-06-26 03:52 UTC Modified: 2021-02-19 10:29 UTC
From: gullevek at gullevek dot org Assigned: cmb (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 7.3.6 OS: Debian
Private report: No CVE-ID: None
 [2019-06-26 03:52 UTC] gullevek at gullevek dot org
using is_dir with ssh2.sftp:// will end with the error below.
operations like opendir work fine

Test script:
$conn = ssh2_connect($ssh_host);
$status = ssh2_auth_pubkey_file($conn, $ssh_user, $ssh_pubkey_file, $ssh_privkey_file);
$sftp = ssh2_sftp($conn);


Expected result:
it should not segfault the script

Actual result:
/usr/local/httpd-2.4-php-7.3/bin/httpd: symbol lookup error: /usr/local/php-7.3-httpd-2.4/lib/php/20180731-zts-debug/ undefined symbol: php_ssh2_sftp_attr2ssb


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-10 15:40 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 15:40 UTC]
I think that issue is fixed as of ssh2 1.2.  Can you confirm?
 [2021-02-19 05:25 UTC] gullevek at gullevek dot org
-Status: Feedback +Status: Assigned
 [2021-02-19 05:25 UTC] gullevek at gullevek dot org
Yes, bug if fixed.
 [2021-02-19 10:29 UTC]
-Status: Assigned +Status: Closed
 [2021-02-19 10:29 UTC]
Thanks for confirming!
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 20:01:29 2024 UTC