blob: 1f0275485ece0da51062164d6ca0e1586e46772f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Bug #69534 (Cycle leaks through declared properties on internal classes)
--FILE--
<?php
class Node extends SplObjectStorage {
public $prop;
}
$node1 = new Node;
$node2 = new Node;
$node1->prop = $node2;
$node2->prop = $node1;
unset($node1);
unset($node2);
var_dump(gc_collect_cycles());
?>
--EXPECT--
int(2)
|