php.net |  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: nikic@php.net Assigned:
Status: Closed Package: opcache
PHP Version: 7.4.0 OS:
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: nikic@php.net
New email:
PHP Version: OS:

 

 [2019-12-12 09:34 UTC] nikic@php.net
Description:
------------
<?php
trait Foo {
    public function test() {
        static $bar;
    }
}
class Bar {
    use Foo;
}

Causes:

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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-12 10:52 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=be89a5c7f191b319c11b3b487a1366e20a1fdc17
Log: Fixed bug #78950: Preloading trait method with static variables
 [2019-12-12 10:52 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 04 19:01:28 2024 UTC