1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/Zend/tests/gc_021.phpt
T
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