summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_042.phpt
blob: 3b4ea7c26789fd8ab4d4d289e61dd882a1168197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
errmsg: key element cannot be a reference
--FILE--
<?php

$a = array(1,2,3);
foreach ($a as &$k=>$v) {
}

echo "Done\n";
?>
--EXPECTF--	
Fatal error: Key element cannot be a reference in %s on line %d