diff options
Diffstat (limited to 'tests/lang/foreachLoop.007.phpt')
-rw-r--r-- | tests/lang/foreachLoop.007.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/foreachLoop.007.phpt b/tests/lang/foreachLoop.007.phpt new file mode 100644 index 0000000..f47fdc7 --- /dev/null +++ b/tests/lang/foreachLoop.007.phpt @@ -0,0 +1,11 @@ +--TEST--
+Foreach loop tests - error case: reference to constant array.
+--FILE--
+<?php
+echo "\nReference to constant array\n";
+foreach (array(1,2) as &$v) {
+ var_dump($v);
+}
+?>
+--EXPECTF--
+Parse error: %s on line 3
|