1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/bug69376_2.phpt
2015-04-07 02:35:52 +03:00

24 lines
235 B
PHP

--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
)