xref: /PHP-7.0/Zend/tests/bug70223.phpt (revision aa546256)
1--TEST--
2Bug #70223 (Incrementing value returned by magic getter)
3--FILE--
4<?php
5
6class A {
7
8    private $foo = 0;
9
10    public function &__get($foo){ return $this->foo; }
11
12}
13
14$a = new A;
15echo $a->f++;
16echo $a->f++;
17echo $a->f++;
18?>
19--EXPECT--
20012
21