diff options
Diffstat (limited to 'Zend/tests/gc_013.phpt')
-rw-r--r-- | Zend/tests/gc_013.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/gc_013.phpt b/Zend/tests/gc_013.phpt new file mode 100644 index 0000000..9209ca2 --- /dev/null +++ b/Zend/tests/gc_013.phpt @@ -0,0 +1,18 @@ +--TEST-- +GC 013: Too many cycles in one array +--INI-- +zend.enable_gc=1 +--FILE-- +<?php +$a = array(); +for ($i = 0; $i < 10001; $i++) { + $a[$i] =& $a; +} +$a[] = "xxx"; +unset($a); +var_dump(gc_collect_cycles()); +echo "ok\n"; +?> +--EXPECT-- +int(2) +ok |