Annotation of embedaddon/php/tests/classes/private_007b.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: ZE2 A derived class does not know about privates of ancestors
        !             3: --SKIPIF--
        !             4: <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: class Bar {
        !             9:        public function pub() {
        !            10:                $this->priv();
        !            11:        }
        !            12:        private function priv() {
        !            13:                echo "Bar::priv()\n";
        !            14:        }
        !            15: }
        !            16: class Foo extends Bar {
        !            17:        public function priv()  { 
        !            18:                echo "Foo::priv()\n";
        !            19:        }
        !            20: }
        !            21: 
        !            22: $obj = new Foo();
        !            23: $obj->pub();
        !            24: $obj->priv();
        !            25: 
        !            26: echo "Done\n";
        !            27: ?>
        !            28: --EXPECTF--
        !            29: Bar::priv()
        !            30: Foo::priv()
        !            31: Done

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