mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
12 lines
320 B
PHP
12 lines
320 B
PHP
--TEST--
|
|
Bug #61828 (Memleak when calling Directory(Recursive)Iterator/Spl(Temp)FileObject ctor twice)
|
|
--FILE--
|
|
<?php
|
|
$x = new DirectoryIterator('.');
|
|
$x->__construct('/tmp');
|
|
echo "Okey";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: DirectoryIterator::__construct(): Directory object is already initialized in %sbug61828.php on line 3
|
|
Okey
|