Annotation of embedaddon/php/ext/standard/tests/array/array_next_error2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: next - ensure we cannot pass a temporary
                      3: --FILE--
                      4: <?php
                      5: function f() {
                      6:     return array(1, 2);
                      7: }
                      8: var_dump(next(array(1, 2)));
                      9: ?>
                     10: --EXPECTF--
                     11: 
                     12: Fatal error: Only variables can be passed by reference in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>