summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39775.phpt
blob: ed6d66a9cc66fc8dcda318dd59e8d6b1a578146f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #39775 ("Indirect modification ..." message is not shown)
--FILE--
<?php
class test {
    var $array = array();
    function __get($var) {
        $v =& $this->array;
        return $this->array;
    }
}
$t = new test;
$t->anything[] = 'bar';
print_r($t->anything);
?>
--EXPECTF--
Notice: Indirect modification of overloaded property test::$anything has no effect in %sbug39775.php on line 10
Array
(
)