diff options
Diffstat (limited to 'Zend/tests/access_modifiers_008.phpt')
-rw-r--r-- | Zend/tests/access_modifiers_008.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/access_modifiers_008.phpt b/Zend/tests/access_modifiers_008.phpt new file mode 100644 index 0000000..67886cf --- /dev/null +++ b/Zend/tests/access_modifiers_008.phpt @@ -0,0 +1,21 @@ +--TEST-- +Inconsistencies when accessing protected members +--XFAIL-- +Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2 +--FILE-- +<?php + +class A { + static protected function f() {return 'A::f()';} +} +class B1 extends A { + static protected function f() {return 'B1::f()';} +} +class B2 extends A { + static public function test() {echo B1::f();} +} +B2::test(); + +?> +--EXPECTF-- +Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d |