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