From 1c50cde17ce20f37c8f20e06f248b8aa939d576b Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Wed, 24 Jul 2013 03:00:43 -0700 Subject: [PATCH] fix subPath for RecursiveDirectoryIterator Another RecursiveDirectoryIterator bug :( This time, subPath was totally wrong. It should only be adding on a little bit each time, not the whole path. --- hphp/system/php/spl/iterators/RecursiveDirectoryIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/system/php/spl/iterators/RecursiveDirectoryIterator.php b/hphp/system/php/spl/iterators/RecursiveDirectoryIterator.php index 602de4ae6..6f75b3f16 100644 --- a/hphp/system/php/spl/iterators/RecursiveDirectoryIterator.php +++ b/hphp/system/php/spl/iterators/RecursiveDirectoryIterator.php @@ -80,7 +80,7 @@ class RecursiveDirectoryIterator extends FilesystemIterator if ($child->subPath) { $child->subPath .= DIRECTORY_SEPARATOR; } - $child->subPath .= $this->getPathname(); + $child->subPath .= $this->getBasename(); return $child; }