1--TEST--
2Foreach by ref assignment to property
3--FILE--
4<?php
5$obj = new stdClass;
6foreach ([0] as &$obj->prop) {
7    var_dump($obj->prop);
8}
9?>
10--EXPECT--
11int(0)
12