summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_031.phpt
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2009-02-08 19:30:01 +0000
committerDerick Rethans <derick@php.net>2009-02-08 19:30:01 +0000
commit201c26283ca9978bc71d7608e24a5011e17ad0e5 (patch)
tree758a9b20d88eea55741a7a85e3d343260d06b10c /Zend/tests/gc_031.phpt
parent4164e522c6f6c8cae579b9f4e1caa07611b37ce4 (diff)
downloadphp-git-201c26283ca9978bc71d7608e24a5011e17ad0e5.tar.gz
- Fixed bug #47341: Calling gc_collect_cycles() with zend.enable_gc=0 causes
segfault.
Diffstat (limited to 'Zend/tests/gc_031.phpt')
-rw-r--r--Zend/tests/gc_031.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/gc_031.phpt b/Zend/tests/gc_031.phpt
new file mode 100644
index 0000000000..58c4b15e3a
--- /dev/null
+++ b/Zend/tests/gc_031.phpt
@@ -0,0 +1,11 @@
+--TEST--
+GC 031: gc_collect_roots() with GC turned off.
+--INI--
+zend.enable_gc=0
+--FILE--
+<?php
+gc_collect_cycles();
+echo "DONE\n";
+?>
+--EXPECTF--
+DONE