mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Warning to Error promotion and a Notice to Warning promotion to align with the behaviour specified in the Reclassify Engine Warnings RFC. Closes GH-6072
16 lines
304 B
PHP
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
|