|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesrecrusivedirectoryiterator-skip-dots (last revision 2013-02-16 18:57 UTC by kriss at krizalys dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-17 03:05 UTC] [email protected]
-Status: Open
+Status: Closed
[2013-02-17 03:05 UTC] [email protected]
[2013-02-17 03:06 UTC] [email protected]
[2013-02-17 03:06 UTC] [email protected]
[2013-02-17 03:07 UTC] [email protected]
[2013-03-01 18:32 UTC] [email protected]
[2014-10-07 23:20 UTC] [email protected]
[2014-10-07 23:31 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 08:00:01 2026 UTC |
Description: ------------ RecursiveDirectoryIterator always assumes SKIP_DOTS, even when the flag is not passed in the constructor. To reproduce the bug, create an empty directory named "empty", and in the parent folder, create and run from the command line the PHP following script. Test script: --------------- <?php $i = new RecursiveDirectoryIterator('empty', FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO); // Note the absence of FilesystemIterator::SKIP_DOTS foreach ($i as $key => $value) { echo "$value\n"; } ?> Expected result: ---------------- $ php -f script.php empty/. empty/.. $ Actual result: -------------- $ php -f script.php $