php-src/Zend/tests/gc_019.phpt

17 lines
217 B
Plaintext
Raw Normal View History

2008-01-22 17:29:29 +08:00
--TEST--
GC 019: GC detach with assign by reference
2010-03-04 01:53:15 +08:00
--INI--
zend.enable_gc=1
2008-01-22 17:29:29 +08:00
--FILE--
<?php
$a = array(array());
$a[0][0] =& $a[0];
$b = 1;
$a =& $b;
var_dump(gc_collect_cycles());
echo "ok\n"
?>
--EXPECT--
int(1)
ok