1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/ext/opcache/tests/wrong_inlining_005.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

25 lines
309 B
PHP

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