1--TEST--
2oss-fuzz #71382
3--FILE--
4<?php
5
6class C {
7    public $a;
8    public $b {
9        get {
10        }
11    }
12}
13
14$reflector = new ReflectionClass(C::class);
15$obj = $reflector->newLazyGhost(function() {
16    throw new \Exception('initializer');
17});
18
19try {
20    foreach($obj as $a) {
21    }
22} catch (Exception $e) {
23    printf("%s: %s\n", $e::class, $e->getMessage());
24}
25
26--EXPECT--
27Exception: initializer
28