summaryrefslogtreecommitdiff
path: root/Zend/tests/bug35393.phpt
blob: ce3bdd001af90ae3e52d30d2cb1fdee29de4f9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--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
)