1--TEST--
2Access hooked property from magic method
3--FILE--
4<?php
5
6class Test {
7    private $prop {
8        get { echo __METHOD__, "\n"; return 42; }
9        set { echo __METHOD__, "\n"; }
10    }
11
12    public function __get($name) {
13        return $this->{$name};
14    }
15
16    public function __set($name, $value) {
17        $this->{$name} = $value;
18    }
19}
20
21$test = new Test;
22$test->prop;
23$test->prop = 42;
24
25?>
26--EXPECT--
27Test::$prop::get
28Test::$prop::set
29