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