1--TEST--
2ZE2 pre increment/decrement property of overloaded object with assignment
3--FILE--
4<?php
5
6class Test {
7    private $real_a = 2;
8
9    function __set($property, $value) {
10      if ($property == "a") {
11        $this->real_a = $value;
12      }
13    }
14
15    function __get($property) {
16      if ($property == "a") {
17        return $this->real_a;
18      }
19    }
20}
21
22$obj = new Test;
23var_dump($obj->a);
24$t1 = ++$obj->a;
25var_dump($obj->a);
26echo "---Done---\n";
27?>
28--EXPECT--
29int(2)
30int(3)
31---Done---
32