1--TEST--
2Make sure the return value of a property assignment is not freed to early
3--FILE--
4<?php
5class Overloaded {
6 function __set($r, $a) {}
7}
8$obj = new Overloaded;
9$x = $obj->prop = new stdClass;
10var_dump($x);
11?>
12--EXPECT--
13object(stdClass)#2 (0) {
14}
15