xref: /PHP-7.3/Zend/tests/gc_021.phpt (revision e24fff2d)
1--TEST--
2GC 021: GC detach reference with assign by reference
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7$a = array();
8$a[0] =& $a;
9$a[1] = array();
10$a[1][0] =& $a[1];
11$b = 1;
12$a =& $b;
13var_dump(gc_collect_cycles());
14echo "ok\n"
15?>
16--EXPECT--
17int(2)
18ok
19