TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
399 B

--TEST--
next - ensure we cannot pass a temporary
--SKIPIF--
<?php die("skip AOT next() error handling differs from PHP"); ?>
--FILE--
<?php
function f()
{
return array(1, 2);
}
function main()
{
var_dump(next(array(1, 2)));
}
?>
--EXPECTF--
Fatal error: Uncaught Error: next(): Argument #1 ($array) could not be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d