1--TEST--
2prev - ensure we cannot pass a temporary
3--FILE--
4<?php
5/* Prototype  : mixed prev(array $array_arg)
6 * Description: Move array argument's internal pointer to the previous element and return it
7 * Source code: ext/standard/array.c
8 */
9
10/*
11 * Pass temporary variables to prev() to test behaviour
12 */
13
14
15var_dump(prev(array(1, 2)));
16?>
17--EXPECTF--
18Fatal error: Only variables can be passed by reference in %s on line %d
19