|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78950 Assertion failure when preloading trait method with static variables
Submitted: 2019-12-12 09:34 UTC Modified: -
From: Assigned:
Status: Closed Package: opcache
PHP Version: 7.4.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2019-12-12 09:34 UTC]
trait Foo {
    public function test() {
        static $bar;
class Bar {
    use Foo;


php: /home/nikic/php-7.4/ext/opcache/zend_persist.c:300: zend_persist_op_array_ex: Assertion `op_array->static_variables != ((void *)0)' failed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-12 10:52 UTC]
Automatic comment on behalf of
Log: Fixed bug #78950: Preloading trait method with static variables
 [2019-12-12 10:52 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Oct 03 00:01:24 2023 UTC