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