From: Rob Richards Date: Sat, 18 Mar 2006 10:46:27 +0000 (+0000) Subject: Fixed bug #36776 (node_list_wrapper_dtor segfault) X-Git-Tag: php-4.4.3RC1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34f6ba497b0fd5854c4b816dcc58f7a18f1cdb61;p=php Fixed bug #36776 (node_list_wrapper_dtor segfault) - no optimizations. this extension is VERY touchy --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index a7f17b48bf..7ec733059c 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -649,6 +649,7 @@ static inline void node_list_wrapper_dtor(xmlNodePtr node, int destroyref TSRMLS /* Skip property freeing for the following types */ case XML_ATTRIBUTE_DECL: case XML_DTD_NODE: + case XML_ELEMENT_DECL: case XML_ENTITY_DECL: case XML_ATTRIBUTE_NODE: break; @@ -689,6 +690,7 @@ static inline void node_list_unlink(xmlNodePtr node) case XML_ATTRIBUTE_DECL: case XML_DTD_NODE: case XML_ENTITY_DECL: + case XML_ELEMENT_DECL: case XML_ATTRIBUTE_NODE: break; default: