File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug35393.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    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>