php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gullevek at gullevek dot org
New email:
PHP Version: OS:

 

 [2019-06-26 03:52 UTC] gullevek at gullevek dot org
Description:
------------
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);

is_dir("ssh2.sftp://".intval($sftp)."/path/to/file");

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/ssh2.so: undefined symbol: php_ssh2_sftp_attr2ssb

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-10 15:40 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-10 15:40 UTC] cmb@php.net
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] cmb@php.net
-Status: Assigned +Status: Closed
 [2021-02-19 10:29 UTC] cmb@php.net
Thanks for confirming!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC