From: michael dot dalbosco at gmail dot com Operating system: Debian 4.4.5-8 PHP version: 5.3.21 Package: Directory function related Bug Type: Bug Bug description:opendir not working with sftp since upgrade from php 5.3.14 to 5.3.21
Description: ------------ --- >From manual page: http://www.php.net/function.opendir#refsect1-function.opendir-description --- I'm connecting to a Sftp server and try to open a directory on this server. It worked fine on php 5.3.10 and php 5.3.14 but since we upgraded to 5.3.21 it doesn't work anymore, opendir returns false. Test script: --------------- $con = ssh2_connect($server, $port); ssh2_auth_pubkey_file ( $con, $login, $pubKeyFile, $privKeyFile); $sftp = ssh2_sftp($con); $dir = "ssh2.sftp://$sftp/"; var_dump(opendir($dir)); Expected result: ---------------- the directory resource Actual result: -------------- false -- Edit bug report at https://bugs.php.net/bug.php?id=64169&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64169&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64169&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64169&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64169&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64169&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64169&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64169&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64169&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64169&r=support Expected behavior: https://bugs.php.net/fix.php?id=64169&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64169&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64169&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64169&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64169&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64169&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64169&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64169&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64169&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64169&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64169&r=mysqlcfg