]> granicus.if.org Git - php/commitdiff
Fix test
authorStanislav Malyshev <stas@php.net>
Sat, 30 Nov 2019 23:37:28 +0000 (15:37 -0800)
committerStanislav Malyshev <stas@php.net>
Mon, 16 Dec 2019 08:03:18 +0000 (00:03 -0800)
ext/spl/tests/bug54291.phpt

index b15a3723d47e1a0fc61a073312064f80c93170f9..b4c1a2dc4ba66e97f36098b3f955f06402c5cd75 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: Failed to open directory "" in %s:%d
+Fatal error: Uncaught UnexpectedValueException: 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}