xref: /PHP-7.3/Zend/tests/gc_022.phpt (revision 7ab8fd9c)
1--TEST--
2GC 022: GC detach reference in executor's PZVAL_UNLOCK()
3--INI--
4error_reporting=0
5zend.enable_gc=1
6--FILE--
7<?php
8$a = array(array());
9$a[0][0] =& $a[0];
10$s = array(1) + unserialize(serialize($a[0]));
11var_dump(gc_collect_cycles());
12echo "ok\n"
13?>
14--EXPECT--
15int(1)
16ok
17