]> granicus.if.org Git - php/commitdiff
Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic...
authorXinchen Hui <laruence@php.net>
Mon, 1 Oct 2012 14:42:22 +0000 (22:42 +0800)
committerXinchen Hui <laruence@php.net>
Mon, 1 Oct 2012 14:42:22 +0000 (22:42 +0800)
ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt

index e08bd3435f6a832f7a89b1c9786fc2e66b6948f8..7b12672e14c50cd3571ea856f8a6a79e1f3c74d3 100644 (file)
@@ -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.