1--TEST--
2Incrementing and decrementing a referenced property
3--FILE--
4<?php
5
6$obj = new stdClass;
7$obj->prop = 1;
8$ref =& $obj->prop;
9var_dump(++$obj->prop);
10var_dump($obj->prop);
11var_dump($obj->prop++);
12var_dump($obj->prop);
13var_dump(--$obj->prop);
14var_dump($obj->prop);
15var_dump($obj->prop--);
16var_dump($obj->prop);
17
18?>
19--EXPECT--
20int(2)
21int(2)
22int(2)
23int(3)
24int(2)
25int(2)
26int(2)
27int(1)
28