xref: /PHP-8.2/Zend/tests/gc_020.phpt (revision e24fff2d)
1--TEST--
2GC 020: GC detach reference with assign
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$a = 1;
12var_dump(gc_collect_cycles());
13echo "ok\n"
14?>
15--EXPECT--
16int(1)
17ok
18