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.
 
 

18 lines
399 B

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