mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

When duplicating user functions with static variables, make sure that we init a new map ptr slot for the static variables.
9 lines
97 B
PHP
9 lines
97 B
PHP
<?php
|
|
|
|
class A {
|
|
public function test() {
|
|
static $foo;
|
|
}
|
|
}
|
|
|
|
class B extends A {}
|