From: Dmitry Stogov Date: Fri, 25 Dec 2009 13:11:18 +0000 (+0000) Subject: Fixed bug #50519 (segfault in garbage collection when using set_error_handler and... X-Git-Tag: php-5.4.0alpha1~191^2~2165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acd8753c5d59a802a90a37c052e80d8b7e07b940;p=php Fixed bug #50519 (segfault in garbage collection when using set_error_handler and DomDocument) --- diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 10f96c2ca1..7dec0f41d7 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -180,6 +180,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); } /* }}} */