php-src/Zend/tests/gc_021.phpt

19 lines
250 B
Plaintext
Raw Normal View History

2008-01-22 09:29:29 +00:00
--TEST--
GC 021: GC detach reference with assign by reference
2010-03-03 17:53:15 +00:00
--INI--
zend.enable_gc=1
2008-01-22 09:29:29 +00:00
--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