xref: /PHP-7.0/Zend/tests/bug69534.phpt (revision 2a9f9860)
1--TEST--
2Bug #69534 (Cycle leaks through declared properties on internal classes)
3--FILE--
4<?php
5class Node extends SplObjectStorage {
6    public $prop;
7}
8
9$node1 = new Node;
10$node2 = new Node;
11$node1->prop = $node2;
12$node2->prop = $node1;
13unset($node1);
14unset($node2);
15var_dump(gc_collect_cycles());
16?>
17--EXPECT--
18int(2)
19