Bug #78950 [Opn->Csd]: Assertion failure when preloading trait method with static variables
| From: | nikic@php.net | Date: | Thu, 12 Dec 2019 10:52:58 +0000 |
| Subject: | Bug #78950 [Opn->Csd]: Assertion failure when preloading trait method with static variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224229@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78950&edit=1
ID: 78950
Updated by: nikic@php.net
Reported by: nikic@php.net
Summary: Assertion failure when preloading trait method with
static variables
-Status: Open
+Status: Closed
Type: Bug
Package: opcache
PHP Version: 7.4.0
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2019-12-12 09:34:05] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78950&edit=1