xref: /PHP-7.0/Zend/tests/bug70332.phpt (revision f56534e4)
1--TEST--
2Bug #70332 (Wrong behavior while returning reference on object)
3--FILE--
4<?php
5function & test($arg) {
6	return $arg;
7}
8
9$arg = new Stdclass();
10$arg->name = array();
11
12test($arg)->name[1] = "xxxx";
13
14print_r($arg);
15?>
16--EXPECT--
17stdClass Object
18(
19    [name] => Array
20        (
21            [1] => xxxx
22        )
23
24)
25