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

1.1     ! misho       1: --TEST--
        !             2: Bug #35393 (changing static protected members from outside the class)
        !             3: --INI--
        !             4: error_reporting=4095
        !             5: --FILE--
        !             6: <?php
        !             7: class ObjectPath
        !             8: {
        !             9:     static protected $type = array(0=>'main');
        !            10: 
        !            11:     static function getType()
        !            12:     {
        !            13:         return self::$type;
        !            14:     }
        !            15: }
        !            16: print_r(ObjectPath::getType());
        !            17: $object_type = array_pop((ObjectPath::getType()));
        !            18: print_r(ObjectPath::getType());
        !            19: ?>
        !            20: --EXPECTF--
        !            21: Array
        !            22: (
        !            23:     [0] => main
        !            24: )
        !            25: 
        !            26: Strict Standards: Only variables should be passed by reference in %sbug35393.php on line 12
        !            27: Array
        !            28: (
        !            29:     [0] => main
        !            30: )

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