php-src/Zend/tests/gc_018.phpt
2010-03-03 17:53:15 +00:00

16 lines
194 B
PHP

--TEST--
GC 018: GC detach with assign
--INI--
zend.enable_gc=1
--FILE--
<?php
$a = array(array());
$a[0][0] =& $a[0];
$a = 1;
var_dump(gc_collect_cycles());
echo "ok\n"
?>
--EXPECT--
int(1)
ok