1--TEST-- 2Inconsistencies when accessing protected members 3--XFAIL-- 4Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2 5--FILE-- 6<?php 7 8class A { 9 static protected function f() {return 'A::f()';} 10} 11class B1 extends A { 12 static protected function f() {return 'B1::f()';} 13} 14class B2 extends A { 15 static public function test() {echo B1::f();} 16} 17B2::test(); 18 19?> 20--EXPECTF-- 21Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d 22