Annotation of embedaddon/php/Zend/tests/access_modifiers_009.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>