summaryrefslogtreecommitdiff
path: root/Zend/tests/gc_034.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-02-22 00:19:06 +0800
committerXinchen Hui <laruence@php.net>2015-02-22 00:19:06 +0800
commite3416beb030901b9dc843207e33339450f693b7d (patch)
tree79a6689bf5b8d08a4d5836ee492c26aa839b9ae6 /Zend/tests/gc_034.phpt
parentf25419f8e362faf96005ae6f78a7f901dfbcb971 (diff)
downloadphp-git-e3416beb030901b9dc843207e33339450f693b7d.tar.gz
Fixed segfault because resource is freed prematurely
Diffstat (limited to 'Zend/tests/gc_034.phpt')
-rw-r--r--Zend/tests/gc_034.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/gc_034.phpt b/Zend/tests/gc_034.phpt
new file mode 100644
index 0000000000..29f7aae9ca
--- /dev/null
+++ b/Zend/tests/gc_034.phpt
@@ -0,0 +1,11 @@
+--TEST--
+GC 033: GC in request shutdown and resource list destroy
+--FILE--
+<?php
+/* run with valgrind */
+$a = array(fopen(__FILE__, 'r'));
+$a[] = &$a;
+?>
+==DONE==
+--EXPECT--
+==DONE==