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--
11
12Fatal error: Only variables can be passed by reference in %s on line %d