| Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/ |
| Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/bug70332.phpt |
--TEST--
Bug #70332 (Wrong behavior while returning reference on object)
--FILE--
<?php
function & test($arg) {
return $arg;
}
$arg = new Stdclass();
$arg->name = array();
test($arg)->name[1] = "xxxx";
print_r($arg);
?>
--EXPECT--
stdClass Object
(
[name] => Array
(
[1] => xxxx
)
)