1--TEST--
2Inlining of functions with ref arguments
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8function by_ref(&$var)
9{
10}
11function &get_array() {
12    $array = [new stdClass];
13    return $array;
14}
15function test()
16{
17    by_ref(get_array()[0]);
18    print "ok!\n";
19}
20test();
21
22?>
23--EXPECT--
24ok!
25