diff options
author | Hannes Magnusson <bjori@php.net> | 2011-05-29 11:39:49 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2011-05-29 11:39:49 +0000 |
commit | 07bcf1080d38e7b5e927d4d1449984b39918a030 (patch) | |
tree | 297740a8099b274d30b541f4d4b19efe52786351 /ext/libxml | |
parent | 69a12bfb3f311fd11f964e81f3f00fca4c7cdbf6 (diff) | |
download | php-git-07bcf1080d38e7b5e927d4d1449984b39918a030.tar.gz |
Fixed bug #54601 (Removing the doctype node segfaults)
Diffstat (limited to 'ext/libxml')
-rw-r--r-- | ext/libxml/libxml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index c9fb2871f3..6888aa5d01 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -222,6 +222,7 @@ static void php_libxml_node_free_list(xmlNodePtr node TSRMLS_DC) switch (node->type) { /* Skip property freeing for the following types */ case XML_NOTATION_NODE: + case XML_ENTITY_DECL: break; case XML_ENTITY_REF_NODE: php_libxml_node_free_list((xmlNodePtr) node->properties TSRMLS_CC); @@ -233,7 +234,6 @@ static void php_libxml_node_free_list(xmlNodePtr node TSRMLS_DC) case XML_ATTRIBUTE_DECL: case XML_DTD_NODE: case XML_DOCUMENT_TYPE_NODE: - case XML_ENTITY_DECL: case XML_NAMESPACE_DECL: case XML_TEXT_NODE: php_libxml_node_free_list(node->children TSRMLS_CC); |