]> granicus.if.org Git - php/commitdiff
Fix tests
authorStanislav Malyshev <stas@php.net>
Mon, 16 Dec 2019 18:59:36 +0000 (10:59 -0800)
committerStanislav Malyshev <stas@php.net>
Mon, 16 Dec 2019 18:59:36 +0000 (10:59 -0800)
ext/spl/tests/bug54291.phpt
ext/spl/tests/bug78863.phpt
ext/standard/tests/file/windows_links/bug78862.phpt

index b4c1a2dc4ba66e97f36098b3f955f06402c5cd75..9f3bd4991216e7808a854c832ba2158b62f12d07 100644 (file)
@@ -5,7 +5,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
 $dir = new DirectoryIterator("\x00/abc");
 $dir->isFile();
 --EXPECTF--
-Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
 Stack trace:
 #0 %s(%d): DirectoryIterator->__construct('\x00/abc')
 #1 {main}
index dc88d98deee8c2623359b9eb893066b15eafed72..c08c88a5d76e7c2d04b87b94af00b3e752574012 100644 (file)
@@ -16,7 +16,7 @@ foreach ($it as $fileinfo) {
 }
 ?>
 --EXPECTF--
-Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
+Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d
 Stack trace:
 #0 %s(%d): DirectoryIterator->__construct('%s')
 #1 {main}
index 33b4b4929300a2149f8caca18da9d041b64dbb78..3bd787e7054a98f25cd70154c796fdc21c31b959 100644 (file)
@@ -7,9 +7,11 @@ var_dump(link(__DIR__ . "/bug78862.target\0more", __DIR__ . "/bug78862.link\0mor
 var_dump(file_exists(__DIR__ . '/bug78862.link'));
 ?>
 --EXPECTF--
-Warning: link() expects parameter 1 to be a valid path, string given in %s on line %d
-NULL
-bool(false)
+Fatal error: Uncaught TypeError: link() expects parameter 1 to be a valid path, string given in %s:%d
+Stack trace:
+#0 %s(%d): link('%s', '%s')
+#1 {main}
+  thrown in %s on line %d
 --CLEAN--
 <?php
 unlink(__DIR__ . '/bug78862.target');