com php-src: Fixed bug #63184 test (ext/spl/tests/RecursiveD irectoryIterator_getSubPathname_basic.phpt failed):
ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_ basic.phpt
| From: | Xinchen Hui | Date: | Mon, 01 Oct 2012 14:42:22 +0000 |
| Subject: | com php-src: Fixed bug #63184 test (ext/spl/tests/RecursiveD irectoryIterator_getSubPathname_basic.phpt failed): ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_ basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70292@lists.php.net to get a copy of this message | ||
Commit: 139ac42bec942639db2f52ae16700e491114c898
Author: Xinchen Hui <laruence@php.net> Mon, 1 Oct 2012 22:42:22 +0800
Parents: c95fd5f758912c23e74ac90e6bf56002d4a5947a
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=139ac42bec942639db2f52ae16700e491114c898
Log:
Fixed bug #63184 test (ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt failed)
Bugs:
https://bugs.php.net/63184
Changed paths:
M ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt
Diff:
diff --git a/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt
b/ext/spl/tests/RecursiveDirectoryIterator_getSubPathname_basic.phpt
index e08bd34..7b12672 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.