summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2011-05-29 11:39:49 +0000
committerHannes Magnusson <bjori@php.net>2011-05-29 11:39:49 +0000
commit2c03acef35bcc542eb2e6acdb6b03f2fd6249575 (patch)
tree6f0e150d283ddc98e61e13a9894ad0aaf81d7bd1 /ext/libxml/libxml.c
parent34de2c30c5499519eab42575b0ed489fb5865a99 (diff)
downloadphp-git-2c03acef35bcc542eb2e6acdb6b03f2fd6249575.tar.gz
Fixed bug #54601 (Removing the doctype node segfaults)
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 222ff98bf2..e19075cd26 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -224,6 +224,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);
@@ -235,7 +236,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);