blob: 75aa778859152e3a78053732d272273af12649d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--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: Uncaught Error: Cannot pass parameter 1 by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|