xref: /php-src/ext/standard/tests/array/bug24198.phpt (revision 9c144e0d)
1--TEST--n
2Bug #24198 (array_merge_recursive() invalid recursion detection)
3--FILE--
4<?php
5$c = array('a' => 'aa','b' => 'bb');
6
7var_dump(array_merge_recursive($c, $c));
8?>
9--EXPECT--
10array(2) {
11  ["a"]=>
12  array(2) {
13    [0]=>
14    string(2) "aa"
15    [1]=>
16    string(2) "aa"
17  }
18  ["b"]=>
19  array(2) {
20    [0]=>
21    string(2) "bb"
22    [1]=>
23    string(2) "bb"
24  }
25}
26