mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
14 lines
210 B
PHP
14 lines
210 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
|