mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
24 lines
235 B
Plaintext
24 lines
235 B
Plaintext
|
--TEST--
|
||
|
Bug #69376 (Wrong ref counting)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$array = array();
|
||
|
$array[] = &$array;
|
||
|
$a = $array;
|
||
|
unset($array);
|
||
|
$b = $a;
|
||
|
$b[0] = 123;
|
||
|
|
||
|
print_r($a);
|
||
|
print_r($b);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Array
|
||
|
(
|
||
|
[0] => 123
|
||
|
)
|
||
|
Array
|
||
|
(
|
||
|
[0] => 123
|
||
|
)
|