php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75556 Invalid opcode 138/1/1
Submitted: 2017-11-22 23:01 UTC Modified: -
From: jacob at thomason dot xxx Assigned:
Status: Closed Package: opcache
PHP Version: 7.2.0RC6 OS: Debian Stretch
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jacob at thomason dot xxx
New email:
PHP Version: OS:

 

 [2017-11-22 23:01 UTC] 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);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-24 16:55 UTC] laruence@php.net
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)
 [2017-11-24 16:55 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 30 13:01:29 2025 UTC