summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_024.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/gc_024.phpt')
-rw-r--r--Zend/tests/gc_024.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/gc_024.phpt b/Zend/tests/gc_024.phpt
new file mode 100644
index 0000000000..ee734d628c
--- /dev/null
+++ b/Zend/tests/gc_024.phpt
@@ -0,0 +1,15 @@
+--TEST--
+GC 024: GC and objects with non-standard handlers
+--SKIPIF--
+<?php if (!extension_loaded("spl")) print "skip"; ?>
+--FILE--
+<?php
+$a = new ArrayObject();
+$a[0] = $a;
+unset($a);
+var_dump(gc_collect_cycles());
+echo "ok\n";
+?>
+--EXPECT--
+int(1)
+ok