xref: /PHP-8.2/ext/standard/tests/array/gh16053.phpt (revision 545bef8a)
1--TEST--
2GH-16053: Assertion failure in Zend/zend_hash.c
3--FILE--
4<?php
5
6class test
7{
8}
9$x = new test;
10$arr1 = array("string" => $x);
11$arr2 = array("string" => "hello");
12var_dump($arr1);
13var_dump(array_merge_recursive($arr1, $arr2));
14
15?>
16--EXPECTF--
17array(1) {
18  ["string"]=>
19  object(test)#%d (0) {
20  }
21}
22array(1) {
23  ["string"]=>
24  array(1) {
25    [0]=>
26    string(5) "hello"
27  }
28}
29