File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug35393.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #35393 (changing static protected members from outside the class)
--INI--
error_reporting=4095
--FILE--
<?php
class ObjectPath
{
    static protected $type = array(0=>'main');

    static function getType()
    {
        return self::$type;
    }
}
print_r(ObjectPath::getType());
$object_type = array_pop((ObjectPath::getType()));
print_r(ObjectPath::getType());
?>
--EXPECTF--
Array
(
    [0] => main
)

Strict Standards: Only variables should be passed by reference in %sbug35393.php on line 12
Array
(
    [0] => main
)

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