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

16 lines
304 B
PHP

--TEST--
Bug #61828 (Memleak when calling Directory(Recursive)Iterator/Spl(Temp)FileObject ctor twice)
--FILE--
<?php
$x = new DirectoryIterator('.');
try {
$x->__construct('/tmp');
} catch (\Error $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
Directory object is already initialized