php-src/ext/opcache/tests/preload_static_var_inheritance.inc
Nikita Popov 21a9ad910b Fixed bug #79548
When duplicating user functions with static variables, make sure
that we init a new map ptr slot for the static variables.
2020-05-04 16:27:45 +02:00

9 lines
97 B
PHP

<?php
class A {
public function test() {
static $foo;
}
}
class B extends A {}