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