mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
debug_zval_dump() currently prints refcount 1 for interned strings and arrays, which does not really reflect the truth. These values are not refcounted, so the refcount is misleading. Instead print an "interned" tag. Closes GH-6598.
17 lines
275 B
PHP
17 lines
275 B
PHP
--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
|
|
}
|