1--TEST--
2Iterating an uninitialized RecursiveIteratorIterator
3--FILE--
4<?php
5
6$rc = new ReflectionClass(RecursiveIteratorIterator::class);
7$it = $rc->newInstanceWithoutConstructor();
8try {
9    foreach ($it as $v) {}
10} catch (Error $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16Object is not initialized
17