php-src/Zend/tests/errmsg_042.phpt
2018-10-14 12:07:20 -03:00

14 lines
209 B
PHP

--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