xref: /PHP-7.3/Zend/tests/bug69376_2.phpt (revision 55cdde3d)
1--TEST--
2Bug #69376 (Wrong ref counting)
3--FILE--
4<?php
5$array = array();
6$array[] = &$array;
7$a = $array;
8unset($array);
9$b = $a;
10$b[0] = 123;
11
12print_r($a);
13print_r($b);
14?>
15--EXPECT--
16Array
17(
18    [0] => 123
19)
20Array
21(
22    [0] => 123
23)
24