xref: /PHP-5.6/Zend/tests/gc_013.phpt (revision e24fff2d)
1--TEST--
2GC 013: Too many cycles in one array
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7$a = array();
8for ($i = 0; $i < 10001; $i++) {
9	$a[$i] =& $a;
10}
11$a[] = "xxx";
12unset($a);
13var_dump(gc_collect_cycles());
14echo "ok\n";
15?>
16--EXPECT--
17int(2)
18ok
19