php-src/Zend/tests/bug69534.phpt

19 lines
322 B
PHP

--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)