diff options
Diffstat (limited to 'ext/spl/tests/bug77431.phpt')
-rw-r--r-- | ext/spl/tests/bug77431.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/spl/tests/bug77431.phpt b/ext/spl/tests/bug77431.phpt new file mode 100644 index 0000000000..eb1ca96b75 --- /dev/null +++ b/ext/spl/tests/bug77431.phpt @@ -0,0 +1,9 @@ +--TEST-- +Bug #77431 (SplFileInfo::__construct() accepts NUL bytes) +--FILE-- +<?php +new SplFileInfo("bad\0good"); +?> +--EXPECTF-- +Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects parameter 1 to be a valid path, string given in %s:%d +Stack trace:%A
\ No newline at end of file |