mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
12 lines
222 B
Plaintext
12 lines
222 B
Plaintext
|
--TEST--
|
||
|
next - ensure we cannot pass a temporary
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function f() {
|
||
|
return array(1, 2);
|
||
|
}
|
||
|
var_dump(next(array(1, 2)));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Fatal error: Only variables can be passed by reference in %s on line %d
|