mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

We need to make sure that trait methods with static variables allocate a separate MAP slot for the static variables pointer, rather than working in-place.
12 lines
129 B
PHP
12 lines
129 B
PHP
<?php
|
|
|
|
trait Foo {
|
|
public function test() {
|
|
static $bar;
|
|
var_dump($bar);
|
|
}
|
|
}
|
|
|
|
class Bar {
|
|
use Foo;
|
|
}
|