xref: /PHP-5.6/Zend/tests/errmsg_042.phpt (revision 0f0fe9c9)
1--TEST--
2errmsg: key element cannot be a reference
3--FILE--
4<?php
5
6$a = array(1,2,3);
7foreach ($a as &$k=>$v) {
8}
9
10echo "Done\n";
11?>
12--EXPECTF--
13Fatal error: Key element cannot be a reference in %s on line %d
14