diff options
Diffstat (limited to 'Zend/tests/gc_024.phpt')
-rw-r--r-- | Zend/tests/gc_024.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/gc_024.phpt b/Zend/tests/gc_024.phpt new file mode 100644 index 0000000..9a2ceb8 --- /dev/null +++ b/Zend/tests/gc_024.phpt @@ -0,0 +1,17 @@ +--TEST-- +GC 024: GC and objects with non-standard handlers +--INI-- +zend.enable_gc=1 +--SKIPIF-- +<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?> +--FILE-- +<?php +$a = new ArrayObject(); +$a[0] = $a; +unset($a); +var_dump(gc_collect_cycles()); +echo "ok\n"; +?> +--EXPECT-- +int(1) +ok |