1--TEST--
2Inc/dec of reference object properties
3--FILE--
4<?php
5
6$obj = new stdClass;
7$obj->cursor = 0;
8$ref =& $obj->cursor;
9
10$obj->cursor++;
11var_dump($obj->cursor);
12
13$obj->cursor--;
14var_dump($obj->cursor);
15
16?>
17--EXPECT--
18int(1)
19int(0)
20