diff options
Diffstat (limited to 'Zend/tests/gc_010.phpt')
-rw-r--r-- | Zend/tests/gc_010.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/tests/gc_010.phpt b/Zend/tests/gc_010.phpt new file mode 100644 index 0000000..af2dda3 --- /dev/null +++ b/Zend/tests/gc_010.phpt @@ -0,0 +1,24 @@ +--TEST-- +GC 010: Cycle with reference to $GLOBALS +--INI-- +zend.enable_gc=1 +--FILE-- +<?php +$a = array(); +$a[] =& $a; +var_dump($a); +$a[] =& $GLOBALS; +unset($a); +var_dump(gc_collect_cycles()); +echo "ok\n" +?> +--EXPECT-- +array(1) { + [0]=> + &array(1) { + [0]=> + *RECURSION* + } +} +int(1) +ok |