1--TEST--
2next - ensure we cannot pass a temporary
3--FILE--
4<?php
5function f() {
6    return array(1, 2);
7}
8var_dump(next(array(1, 2)));
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: next(): Argument #1 ($array) could not be passed by reference in %s:%d
12Stack trace:
13#0 {main}
14  thrown in %s on line %d
15