summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug71837.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/bug71837.phpt')
-rw-r--r--ext/standard/tests/array/bug71837.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug71837.phpt b/ext/standard/tests/array/bug71837.phpt
new file mode 100644
index 0000000000..686d144c3c
--- /dev/null
+++ b/ext/standard/tests/array/bug71837.phpt
@@ -0,0 +1,27 @@
+--TEST--
+Bug #71837 (Wrong arrays behaviour)
+--FILE--
+<?php
+
+$p = array(array());
+array_push($p[0], array(100));
+
+$c = array_merge($p, array());
+$c[0][0] = 200;
+
+print_r($p);
+
+?>
+--EXPECT--
+Array
+(
+ [0] => Array
+ (
+ [0] => Array
+ (
+ [0] => 100
+ )
+
+ )
+
+)