1--TEST--
2Operators on overloaded property reference
3--FILE--
4<?php
5class C {
6    private $bar;
7    function __construct() { $this->bar = str_repeat("1", 2); }
8    function &__get($x) { return $this->bar; }
9    function __set($x, $v) { $this->bar = $v; }
10}
11$x = new C;
12var_dump(++$x->foo);
13$x = new C;
14var_dump($x->foo++);
15$x = new C;
16var_dump($x->foo += 2);
17?>
18--EXPECT--
19int(12)
20string(2) "11"
21int(13)
22