summaryrefslogtreecommitdiff
path: root/tests/lang/foreachLoop.017.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/foreachLoop.017.phpt')
-rw-r--r--tests/lang/foreachLoop.017.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/foreachLoop.017.phpt b/tests/lang/foreachLoop.017.phpt
new file mode 100644
index 0000000..3d2618e
--- /dev/null
+++ b/tests/lang/foreachLoop.017.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Ensure foreach works with arrays with Binary keys.
+--FILE--
+<?php
+$a = array ( "\x90" => 10 );
+foreach ($a as $val=>$key) echo $key;
+echo "\nDone\n";
+?>
+--EXPECTF--
+10
+Done \ No newline at end of file