summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2009-12-25 13:11:18 (GMT)
committerDmitry Stogov <dmitry@php.net>2009-12-25 13:11:18 (GMT)
commitdb8e4a089c656907bd20bf33258399d4f89fe87e (patch)
treef9add058ee31de2a5e8175ddc515c4a49f21da47 /Zend
parent3cc801b9b01827a80d7f2c21956ebba8df70b498 (diff)
downloadphp-db8e4a089c656907bd20bf33258399d4f89fe87e.tar.gz
Fixed bug #50519 (segfault in garbage collection when using set_error_handler and DomDocument)
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_variables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c
index eb99302..886db0d 100644
--- a/Zend/zend_variables.c
+++ b/Zend/zend_variables.c
@@ -160,6 +160,9 @@ ZEND_API void _zval_copy_ctor_wrapper(zval *zvalue)
ZEND_API void _zval_dtor_wrapper(zval *zvalue)
{
+ TSRMLS_FETCH();
+
+ GC_REMOVE_ZVAL_FROM_BUFFER(zvalue);
zval_dtor(zvalue);
}