1--TEST-- 2Constant updating for shadowed private property 3--FILE-- 4<?php 5class Foo { 6 private $prop = X; 7 function test() { 8 var_dump($this->prop); 9 } 10} 11 12class Bar extends Foo { 13 protected $prop; 14} 15 16define('X', 1); 17$bar = new Bar; 18$bar->test(); 19 20?> 21--EXPECT-- 22int(1) 23