1--TEST--
2GH-15187: Crash in hooked iterators on properties array without dynamic properties
3--FILE--
4<?php
5
6class Test {
7    public $prop { set => $value; }
8}
9
10$test = new Test();
11var_dump($test);
12foreach ($test as $key => $value) {
13    var_dump($key, $value);
14}
15
16?>
17--EXPECTF--
18object(Test)#%d (1) {
19  ["prop"]=>
20  NULL
21}
22string(4) "prop"
23NULL
24