Bug #75556 [Opn->Csd]: Invalid opcode 138/1/1

From: Date: Fri, 24 Nov 2017 16:55:29 +0000
Subject: Bug #75556 [Opn->Csd]: Invalid opcode 138/1/1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212715@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75556&edit=1 ID: 75556 Updated by: laruence@php.net Reported by: jacob at thomason dot xxx Summary: Invalid opcode 138/1/1 -Status: Open +Status: Closed Type: Bug Package: opcache Operating System: Debian Stretch PHP Version: 7.2.0RC6 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=c412b8b3844b1881a952e1340dba23288a943f96 Log: Fixed bug #75556 (Invalid opcode 138/1/1) Previous Comments: ------------------------------------------------------------------------ [2017-11-22 23:01:18] jacob at thomason dot xxx 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); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75556&edit=1

« previous php.bugs (#212715) next »