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

15 lines
192 B
PHP

--TEST--
GC 019: GC detach with assign by reference
--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