php-src/Zend/tests/gc_021.phpt
2008-01-22 09:27:48 +00:00

17 lines
225 B
PHP

--TEST--
GC 021: GC detach reference with assign by reference
--FILE--
<?php
$a = array();
$a[0] =& $a;
$a[1] = array();
$a[1][0] =& $a[1];
$b = 1;
$a =& $b;
var_dump(gc_collect_cycles());
echo "ok\n"
?>
--EXPECT--
int(2)
ok