12345678910111213141516171819202122232425262728 |
- --TEST--
- Bug #78335: Static properties/variables containing cycles report as leak
- --FILE--
- <?php
- class Test {
- public static $test;
- public static function method() {
- static $foo;
- $foo = [&$foo];
- }
- }
- function test() {
- static $foo;
- $foo = [&$foo];
- }
- $foo = [&$foo];
- Test::$test = $foo;
- test();
- Test::method();
- ?>
- ===DONE===
- --EXPECT--
- ===DONE===
|