[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
kmspico
/
bin
/
lib
/
[
Home
]
File: bug75556.phpt
--TEST-- Bug #75556 (Invalid opcode 138/1/1) --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 --EXTENSIONS-- opcache --FILE-- <?php function createFromFormat($format, $date, ?\DateTimeZone $tz = null): ?\DateTimeInterface { if ($tz !== null || ($tz instanceof \DateTimeZone && !in_array($tz->getName(), ['UTC', 'Z'], true)) ) { $msg = 'Date objects must have UTC as their timezone'; throw new \UnexpectedValueException($msg); } return null; } var_dump(createFromFormat('m/d/Y', '12/07/2017', null)); ?> --EXPECT-- NULL