Bug #78950 [NEW]: Assertion failure when preloading trait method with static variables
| From: | nikic@php.net | Date: | Thu, 12 Dec 2019 09:34:05 +0000 |
| Subject: | Bug #78950 [NEW]: Assertion failure when preloading trait method with static variables | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-224225@lists.php.net to get a copy of this message | ||
From: nikic
Operating system:
PHP version: 7.4.0
Package: opcache
Bug Type: Bug
Bug description:Assertion failure when preloading trait method with static variables
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 bug report at https://bugs.php.net/bug.php?id=78950&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78950&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78950&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78950&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78950&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78950&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78950&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78950&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78950&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78950&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78950&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78950&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78950&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78950&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78950&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78950&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78950&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78950&r=mysqlcfg