php-src/Zend/tests/bug69534.phpt
2017-01-10 12:17:31 -05:00

21 lines
349 B
PHP

--TEST--
Bug #69534 (Cycle leaks through declared properties on internal classes)
--INI--
zend.enable_gc = 1
--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)