php-8.0.30-src/ext/spl/tests/gh8366.phpt

10 lines
177 B
PHP

--TEST--
Bug GH-8366 (ArrayIterator may leak when calling __construct())
--FILE--
<?php
$it = new \ArrayIterator();
foreach ($it as $elt) {}
$it->__construct([]);
?>
--EXPECT--