xref: /PHP-8.2/ext/standard/tests/array/bug71837.phpt (revision 345ecd98)
1--TEST--
2Bug #71837 (Wrong arrays behaviour)
3--FILE--
4<?php
5
6$p = array(array());
7array_push($p[0], array(100));
8
9$c = array_merge($p, array());
10$c[0][0] = 200;
11
12print_r($p);
13
14?>
15--EXPECT--
16Array
17(
18    [0] => Array
19        (
20            [0] => Array
21                (
22                    [0] => 100
23                )
24
25        )
26
27)
28