Annotation of embedaddon/php/tests/lang/foreachLoop.008.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Foreach loop tests - error case: reference to constant array, with key.
        !             3: --FILE--
        !             4: <?php
        !             5: foreach (array(1,2) as $k=>&$v) {
        !             6:   var_dump($v);
        !             7: }
        !             8: ?>
        !             9: --EXPECTF--
        !            10: Fatal error: Cannot create references to elements of a temporary array expression in %s on line 2

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