]> granicus.if.org Git - php/commitdiff
- Add new test
authorMarcus Boerger <helly@php.net>
Mon, 7 Feb 2005 15:16:08 +0000 (15:16 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 7 Feb 2005 15:16:08 +0000 (15:16 +0000)
tests/lang/040.phpt [new file with mode: 0755]

diff --git a/tests/lang/040.phpt b/tests/lang/040.phpt
new file mode 100755 (executable)
index 0000000..6d8ece9
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+foreach into array
+--FILE--
+<?php
+$a = array(0,1);
+$b[0]=2;
+foreach($a as $b[0]) {
+  echo $b[0]."\n";
+}
+?>
+===DONE===
+--EXPECT--
+0
+1
+===DONE===