Bug #68557 [Fbk->NoF]: RecursiveDirectoryIterator::seek(0) broken after calling getChildren()

From: Date: Sun, 01 Mar 2015 04:22:19 +0000
Subject: Bug #68557 [Fbk->NoF]: RecursiveDirectoryIterator::seek(0) broken after calling getChildren()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191016@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68557&edit=1 ID: 68557 Updated by: php-bugs@lists.php.net Reported by: bschussek at gmail dot com Summary: RecursiveDirectoryIterator::seek(0) broken after calling getChildren() -Status: Feedback +Status: No Feedback Type: Bug Package: SPL related Operating System: Ubuntu 14.04 PHP Version: 5.5.19 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2015-02-20 14:46:55] jpauli@php.net Please try using this snapshot: http://snaps.php.net/php5.5-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2015-02-20 14:46:10] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=c111d1cd701d2720fdf2707640e70cc9ec5cf76e Log: fix #68557 ------------------------------------------------------------------------ [2015-02-20 14:45:47] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=c111d1cd701d2720fdf2707640e70cc9ec5cf76e Log: fix #68557 ------------------------------------------------------------------------ [2015-02-20 14:45:26] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=c111d1cd701d2720fdf2707640e70cc9ec5cf76e Log: fix #68557 ------------------------------------------------------------------------ [2014-12-06 20:06:53] bschussek at gmail dot com I did some more testing. The same bugs appears for DirectoryIterator: --------------- <?php mkdir(__DIR__.'/temp'); mkdir(__DIR__.'/temp/a'); mkdir(__DIR__.'/temp/b'); $iterator = new DirectoryIterator(__DIR__.'/temp'); $iterator->seek(0); var_dump($iterator->current()->getPathname()); $iterator->seek(1); var_dump($iterator->current()->getPathname()); $iterator->seek(0); var_dump($iterator->current()->getPathname()); $iterator->seek(1); var_dump($iterator->current()->getPathname()); rmdir(__DIR__.'/temp/a'); rmdir(__DIR__.'/temp/b'); rmdir(__DIR__.'/temp'); --------------- Neither rewind() nor seek(0) works. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=68557 -- Edit this bug report at https://bugs.php.net/bug.php?id=68557&edit=1

« previous php.bugs (#191016) next »