1--TEST--
2Property can be overridden by hooked property
3--FILE--
4<?php
5
6class A {
7    public $prop;
8}
9
10class B extends A {
11    public $prop {
12        get { echo __CLASS__ . '::' . __METHOD__ . "\n"; return 3; }
13        set { echo __CLASS__ . '::' . __METHOD__ . "\n"; }
14    }
15}
16
17$a = new A;
18$a->prop = 1;
19var_dump($a->prop);
20
21$b = new B;
22$b->prop = 2;
23var_dump($b->prop);
24
25?>
26--EXPECT--
27int(1)
28B::B::$prop::set
29B::B::$prop::get
30int(3)
31