summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_042.phpt
blob: 3ed20415c41db5814de33870b36951d6159ed648 (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