#45505 [NEW]: DirectoryIterator default sorting error

From: Date: Sun, 13 Jul 2008 23:25:25 +0000
Subject: #45505 [NEW]: DirectoryIterator default sorting error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126649@lists.php.net to get a copy of this message
From: jcknight at gmail dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: SPL related Bug description: DirectoryIterator default sorting error Description: ------------ The DirectoryIterator class does not iterate the directory how it is organized on the file system. Reproduce code: --------------- <?php $dir = new DirectoryIterator("."); foreach($dir as $file) { echo $file->current() ."\n"; } ?> Expected result: ---------------- . .. enter_L.gif enter_R.gif mad_L.gif mad_R.gif Actual result: -------------- . .. enter_L.gif mad_L.gif enter_R.gif mad_R.gif -- Edit bug report at http://bugs.php.net/?id=45505&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45505&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45505&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45505&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45505&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45505&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45505&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45505&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45505&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45505&r=support Expected behavior: http://bugs.php.net/fix.php?id=45505&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45505&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45505&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45505&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45505&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45505&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45505&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45505&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45505&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45505&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45505&r=mysqlcfg

« previous php.bugs (#126649) next »