diff --git a/hphp/system/php/spl/iterators/FilesystemIterator.php b/hphp/system/php/spl/iterators/FilesystemIterator.php index 602d1428cec184..65080725281619 100644 --- a/hphp/system/php/spl/iterators/FilesystemIterator.php +++ b/hphp/system/php/spl/iterators/FilesystemIterator.php @@ -40,7 +40,7 @@ class FilesystemIterator extends DirectoryIterator { * @return mixed No value is returned. */ public function __construct($path, $flags = null) { - parent::__construct($path); + parent::__construct((string) $path); if ($flags === null) { $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | diff --git a/hphp/test/frameworks/results/composer_php7.expect b/hphp/test/frameworks/results/composer_php7.expect index 563470990461ea..a99e0353f9ca7b 100644 --- a/hphp/test/frameworks/results/composer_php7.expect +++ b/hphp/test/frameworks/results/composer_php7.expect @@ -1095,13 +1095,13 @@ Composer\Test\Json\JsonValidationExceptionTest::testGetErrors with data set #1 Composer\Test\Json\JsonValidationExceptionTest::testGetErrorsWhenNoErrorsProvided . Composer\Test\Package\Archiver\ArchivableFilesFinderTest::testGitExcludes -E +. Composer\Test\Package\Archiver\ArchivableFilesFinderTest::testHgExcludes -E +F Composer\Test\Package\Archiver\ArchivableFilesFinderTest::testManualExcludes -E +. Composer\Test\Package\Archiver\ArchivableFilesFinderTest::testSkipExcludes -E +. Composer\Test\Package\Archiver\ArchiveManagerTest::testArchiveCustomFileName E Composer\Test\Package\Archiver\ArchiveManagerTest::testArchiveTar @@ -1125,9 +1125,9 @@ Composer\Test\Package\Archiver\HgExcludeFilterTest::testPatternEscape with data Composer\Test\Package\Archiver\PharArchiverTest::testTarArchive E Composer\Test\Package\Archiver\PharArchiverTest::testZipArchive -E +. Composer\Test\Package\Archiver\ZipArchiverTest::testZipArchive -E +. Composer\Test\Package\BasePackageTest::testFormatVersionForDevPackage with data set #0 . Composer\Test\Package\BasePackageTest::testFormatVersionForDevPackage with data set #1 diff --git a/hphp/test/slow/ext_spl_iterators/iterator_of_object.php b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php new file mode 100644 index 00000000000000..ee88c2381193a3 --- /dev/null +++ b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php @@ -0,0 +1,5 @@ +getPath() === sys_get_temp_dir()); diff --git a/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.expect b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.expect new file mode 100644 index 00000000000000..ea5b1fdc3c0f5a --- /dev/null +++ b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.expect @@ -0,0 +1 @@ +bool(true) diff --git a/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.ini b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.ini new file mode 100644 index 00000000000000..5fe8cb8e0d0440 --- /dev/null +++ b/hphp/test/slow/ext_spl_iterators/iterator_of_object.php.ini @@ -0,0 +1 @@ +hhvm.php7.all