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