From: Xinchen Hui Date: Mon, 1 Oct 2012 14:42:22 +0000 (+0800) Subject: Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic... X-Git-Tag: php-5.4.8RC1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=139ac42bec942639db2f52ae16700e491114c898;p=php Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt failed) --- diff --git a/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt b/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt index e08bd3435f..7b12672e14 100644 --- a/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt +++ b/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt @@ -17,6 +17,7 @@ $iterator = new RecursiveDirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . $dept $it = new RecursiveIteratorIterator($iterator); $list = []; +$it->rewind(); //see https://bugs.php.net/bug.php?id=62914 while($it->valid()) { $list[] = $it->getSubPathname(); $it->next(); @@ -46,7 +47,6 @@ rrmdir($targetDir); --EXPECTF-- . .. -.. depth1%c. depth1%c.. depth1%cdepth2%c.