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