summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug72369.phpt
blob: 87d9aac357e5e8a87e231fdf224a4dfd7b960f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #72369 (array_merge() produces references in PHP7)
--FILE--
<?php
$x = 'xxx';
$d = ['test' => &$x];
unset($x);
$a = ['test' => 'yyy'];
$a = array_merge($a, $d);
debug_zval_dump($a);
?>
--EXPECTF--
array(1) refcount(%d){
  ["test"]=>
  string(3) "xxx" interned
}