1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00
Files
archived-php-src/Zend/tests/gc_022.phpt
Felipe Pena 7ab8fd9c0a - Fix test
2010-04-26 13:41:00 +00:00

17 lines
278 B
PHP

--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