Return to bug35393.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests |
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: )