Annotation of embedaddon/php/ext/standard/tests/array/prev_error3.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: prev - 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:
15: var_dump(prev(array(1, 2)));
16: ?>
17: --EXPECTF--
18:
19: Fatal error: Only variables can be passed by reference in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>