diff options
author | Xinchen Hui <laruence@php.net> | 2015-02-22 00:19:06 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-02-22 00:19:06 +0800 |
commit | e3416beb030901b9dc843207e33339450f693b7d (patch) | |
tree | 79a6689bf5b8d08a4d5836ee492c26aa839b9ae6 /Zend/tests/gc_034.phpt | |
parent | f25419f8e362faf96005ae6f78a7f901dfbcb971 (diff) | |
download | php-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.phpt | 11 |
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== |