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

1.1     ! misho       1: --TEST--
        !             2: Bug #60536 (Traits Segfault)
        !             3: --FILE--
        !             4: <?php
        !             5: trait T { private $x = 0; }
        !             6: class X { 
        !             7:        use T;
        !             8: }
        !             9: class Y extends X {
        !            10:          use T;
        !            11:          function x() {
        !            12:              return ++$this->x; 
        !            13:       }
        !            14: }
        !            15: class Z extends Y {
        !            16:          function z() {
        !            17:                  return ++$this->x; 
        !            18:       }
        !            19: }
        !            20: $a = new Z();
        !            21: $a->x();
        !            22: echo "DONE";
        !            23: ?>
        !            24: --EXPECTF--
        !            25: DONE

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