17 lines
313 B
PHP
17 lines
313 B
PHP
--TEST--
|
|
Iterating an uninitialized RecursiveIteratorIterator
|
|
--FILE--
|
|
<?php
|
|
|
|
$rc = new ReflectionClass(RecursiveIteratorIterator::class);
|
|
$it = $rc->newInstanceWithoutConstructor();
|
|
try {
|
|
foreach ($it as $v) {}
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Object is not initialized
|