source: src/router/php7/ext/opcache/tests/wrong_inlining_005.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 261 bytes
Line 
1--TEST--
2Inlining of functions with ref arguments
3--FILE--
4<?php
5
6function by_ref(&$var)
7{
8}
9function &get_array() {
10    $array = [new stdClass];
11    return $array;
12}
13function test()
14{
15    by_ref(get_array()[0]);
16    print "ok!\n";
17}
18test();
19
20?>
21--EXPECT--
22ok!
Note: See TracBrowser for help on using the repository browser.