Annotation of embedaddon/php/Zend/tests/access_modifiers_008.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Inconsistencies when accessing protected members
        !             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() {echo B1::f();}
        !            16: }
        !            17: B2::test();
        !            18: 
        !            19: ?>
        !            20: --EXPECTF--
        !            21: Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d

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