|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-30 20:07 UTC] jani@php.net
[2009-12-01 13:17 UTC] david at grudl dot com
[2014-07-03 21:39 UTC] vrana@php.net
-Status: Not a bug
+Status: Re-Opened
[2014-07-03 21:39 UTC] vrana@php.net
[2018-08-17 18:07 UTC] cmb@php.net
-Status: Re-Opened
+Status: Verified
[2018-08-17 18:07 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Description: ------------ Iteration over CachingIterator with DirectoryIterator leads to incorrect results. Reproduce code: --------------- // w/o CachingIterator $dir = new DirectoryIterator(dirname(__FILE__)); foreach ($dir as $val) { echo $val; } // with CachingIterator $iterator = new CachingIterator($dir); foreach ($iterator as $val) { echo $val; } Expected result: ---------------- It is expected the both code snippets produces the same result: . .. anyfile.php Actual result: -------------- // w/o CachingIterator: . .. anyfile.php // with CachingIterator: .. anyfile.php (empty string)