summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/wrong_inlining_005.phpt
blob: 0526a7b035f044892b2374ecc5ba9544dee9cafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Inlining of functions with ref arguments
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function by_ref(&$var)
{
}
function &get_array() {
    $array = [new stdClass];
    return $array;
}
function test()
{
    by_ref(get_array()[0]);
    print "ok!\n";
}
test();

?>
--EXPECT--
ok!