summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug61828.phpt
blob: 04d435e6d6edd6ae61f0aeeef70c0beed5e19eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--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