Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt failed)

This commit is contained in:
Xinchen Hui 2012-10-01 22:42:22 +08:00
parent c95fd5f758
commit 139ac42bec

View 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.