1--TEST--
2next - ensure warning is received when passing an indirect temporary.
3--FILE--
4<?php
5function f() {
6    return array(1, 2);
7}
8var_dump(next(f()));
9?>
10--EXPECTF--
11Notice: Only variables should be passed by reference in %s on line %d
12int(2)
13