php-src/Zend/tests/bug70332.phpt
2020-02-03 22:52:20 +01:00

25 lines
323 B
PHP

--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
)
)