Annotation of embedaddon/php/tests/lang/foreachLoop.006.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Foreach loop tests - error case: key is a reference.
                      3: --FILE--
                      4: <?php
                      5: $a = array("a","b","c");
                      6: foreach ($a as &$k=>$v) {
                      7:   var_dump($v);
                      8: }
                      9: ?>
                     10: --EXPECTF--
                     11: Fatal error: Key element cannot be a reference in %s on line 3

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