Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21

From: Date: Wed, 20 Mar 2019 18:27:47 +0000
Subject: Bug #64169 [Com]: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220102@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64169&edit=1 ID: 64169 Comment by: ken at pardiac dot com Reported by: michael dot dalbosco at gmail dot com Summary: opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21 Status: Open Type: Bug Package: Directory function related Operating System: Linux PHP Version: 5.6.0-dev Block user comment: N Private report: N New Comment: This is the same problem as bug #69981. I've put a patch there that fixes this. I also added a comment explaining the bug and the fix. I'm not sure how to get the fix into the code base though. Previous Comments: ------------------------------------------------------------------------ [2018-06-07 09:54:30] cr at keppler-it dot de Bug still exists with PHP 7.2.6 and SSH2 PECL Plugin 1.1.2-alpha Possible Workaround still is to appending a dot (.) to the root directory. ------------------------------------------------------------------------ [2013-05-18 16:44:45] bluej100 at gmail dot com To clarify, this issue specifically affects the root directory, if Michael and I are seeing the same thing. Subdirectory listing works fine. ------------------------------------------------------------------------ [2013-05-07 23:48:34] bluej100 at gmail dot com I've done a build of 5.6.0-dev head with ssh2 0.12 and confirmed that this bug is still present. ------------------------------------------------------------------------ [2013-05-07 18:25:45] bluej100 at gmail dot com This ticket may belong under PECL->SSH2 rather than directory functions. ------------------------------------------------------------------------ [2013-05-07 18:23:36] bluej100 at gmail dot com This is discussed at http://stackoverflow.com/a/16238476/69173, which notes that you can work around the issue by appending an explicit current-directory period. I'm willing to try to create a patch for this. It'll be a little tough to write a test case for it, though--should I include a reference to a public sftp share? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64169 -- Edit this bug report at https://bugs.php.net/bug.php?id=64169&edit=1

« previous php.bugs (#220102) next »