1--TEST--
2By-reference get may be implemented as plain
3--FILE--
4<?php
5
6interface I {
7    public $prop { &get; }
8}
9
10class A implements I {
11    public $prop;
12}
13
14function test(I $i) {
15    $ref = &$i->prop;
16    $ref = 42;
17}
18
19$a = new A();
20test($a);
21var_dump($a);
22
23?>
24--EXPECT--
25object(A)#1 (1) {
26  ["prop"]=>
27  int(42)
28}
29