|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-14 09:52 UTC] johannes@php.net
[2008-07-14 14:22 UTC] jcknight at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
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