xref: /PHP-7.4/ext/spl/tests/bug77431.phpt (revision 254a5914)
1--TEST--
2Bug #77431 (SplFileInfo::__construct() accepts NUL bytes)
3--FILE--
4<?php
5new SplFileInfo("bad\0good");
6?>
7--EXPECTF--
8Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects parameter 1 to be a valid path, string given in %s:%d
9Stack trace:%A