mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
21 lines
395 B
Plaintext
21 lines
395 B
Plaintext
|
--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
|
||
|
(
|
||
|
)
|