|
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] laruence@php.net
-Status: Open
+Status: Closed
[2013-02-17 03:05 UTC] laruence@php.net
[2013-02-17 03:06 UTC] laruence@php.net
[2013-02-17 03:06 UTC] laruence@php.net
[2013-02-17 03:07 UTC] laruence@php.net
[2013-03-01 18:32 UTC] stas@php.net
[2014-10-07 23:20 UTC] stas@php.net
[2014-10-07 23:31 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 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 $