Skip to content

Commit 139ac42

Browse files
committed
Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt failed)
1 parent c95fd5f commit 139ac42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $iterator = new RecursiveDirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . $dept
1717
$it = new RecursiveIteratorIterator($iterator);
1818

1919
$list = [];
20+
$it->rewind(); //see https://bugs.php.net/bug.php?id=62914
2021
while($it->valid()) {
2122
$list[] = $it->getSubPathname();
2223
$it->next();
@@ -46,7 +47,6 @@ rrmdir($targetDir);
4647
--EXPECTF--
4748
.
4849
..
49-
..
5050
depth1%c.
5151
depth1%c..
5252
depth1%cdepth2%c.

0 commit comments

Comments
 (0)