xref: /PHP-8.2/ext/spl/tests/gh16604_1.phpt (revision 886a5287)
1--TEST--
2GH-16604 (Memory leaks in SPL constructors) - recursive iterators
3--FILE--
4<?php
5
6$traversable = new RecursiveArrayIterator( [] );
7
8$obj = new RecursiveIteratorIterator( $traversable );
9$obj->__construct( $traversable );
10
11$obj = new RecursiveTreeIterator( $traversable );
12$obj->__construct( $traversable );
13
14?>
15--EXPECT--
16