1--TEST--
2Call property hooks by name
3--FILE--
4<?php
5
6class Test {
7    public $prop {
8        get { echo "get called\n"; }
9        set { echo "set called with $value\n"; }
10    }
11}
12
13$test = new Test;
14try {
15    $test->{'$prop::get'}();
16} catch (\Error $e) {
17    echo $e->getMessage(), "\n";
18}
19try {
20    $test->{'$prop::set'}('foo');
21} catch (\Error $e) {
22    echo $e->getMessage(), "\n";
23}
24
25?>
26--EXPECT--
27Call to undefined method Test::$prop::get()
28Call to undefined method Test::$prop::set()
29