xref: /PHP-5.4/tests/lang/foreachLoop.007.phpt (revision 176012df)
1--TEST--
2Foreach loop tests - error case: reference to constant array.
3--FILE--
4<?php
5echo "\nReference to constant array\n";
6foreach (array(1,2) as &$v) {
7  var_dump($v);
8}
9?>
10--EXPECTF--
11Parse error: %s on line 3
12