summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2019-11-30 15:37:28 -0800
committerRemi Collet <remi@php.net>2019-12-17 13:11:28 +0100
commit8877854ef2f18c008ac6ab171ac156966dc01296 (patch)
treee72b4b358d88bda011ef2a2a5810250ee70d903b
parent2517a7e213df64e003d3e73c17be54be8fa7e3b0 (diff)
downloadphp-git-8877854ef2f18c008ac6ab171ac156966dc01296.tar.gz
Fix test
(cherry picked from commit b771a18133bdfd95ce36932e5b83a724f17a1427)
-rw-r--r--ext/spl/tests/bug54291.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/tests/bug54291.phpt b/ext/spl/tests/bug54291.phpt
index b15a3723d4..b4c1a2dc4b 100644
--- a/ext/spl/tests/bug54291.phpt
+++ b/ext/spl/tests/bug54291.phpt
@@ -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}