xref: /PHP-7.1/Zend/tests/gc_019.phpt (revision e24fff2d)
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