xref: /php-src/Zend/tests/errmsg/errmsg_042.phpt (revision 275f63e7)
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