php-src/Zend/tests/gc_022.phpt

17 lines
278 B
Plaintext
Raw Normal View History

2008-01-22 17:29:29 +08:00
--TEST--
GC 022: GC detach reference in executor's PZVAL_UNLOCK()
--INI--
error_reporting=0
2010-03-04 01:53:15 +08:00
zend.enable_gc=1
2008-01-22 17:29:29 +08:00
--FILE--
<?php
$a = array(array());
$a[0][0] =& $a[0];
2010-04-26 21:41:00 +08:00
$s = array(1) + unserialize(serialize($a[0]));
2008-01-22 17:29:29 +08:00
var_dump(gc_collect_cycles());
echo "ok\n"
?>
--EXPECT--
int(1)
ok