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; }