|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-11-24 16:55 UTC] laruence@php.net
[2017-11-24 16:55 UTC] laruence@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
Description: ------------ PHP Fatal error: Invalid opcode 138/1/1. Test script: --------------- public static 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); } } createFromFormat('m/d/Y', '12/07/2017', null);