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