1--TEST--
2Assign result of by-value function to object property by-reference
3--FILE--
4<?php
5
6function notRef() {
7    return null;
8}
9
10$obj = new stdClass;
11$obj->prop =& notRef();
12var_dump($obj);
13
14?>
15--EXPECTF--
16Notice: Only variables should be assigned by reference in %s on line %d
17object(stdClass)#1 (1) {
18  ["prop"]=>
19  NULL
20}
21