xref: /PHP-5.6/ext/spl/tests/bug61828.phpt (revision 38eb909d)
1--TEST--
2Bug #61828 (Memleak when calling Directory(Recursive)Iterator/Spl(Temp)FileObject ctor twice)
3--FILE--
4<?php
5$x = new DirectoryIterator('.');
6$x->__construct('/tmp');
7echo "Okey";
8?>
9--EXPECTF--
10Warning: DirectoryIterator::__construct(): Directory object is already initialized in %sbug61828.php on line 3
11Okey
12