]> granicus.if.org Git - php/commitdiff
Fixed bug #36776 (node_list_wrapper_dtor segfault)
authorRob Richards <rrichards@php.net>
Sat, 18 Mar 2006 10:46:27 +0000 (10:46 +0000)
committerRob Richards <rrichards@php.net>
Sat, 18 Mar 2006 10:46:27 +0000 (10:46 +0000)
  - no optimizations. this extension is VERY touchy

ext/domxml/php_domxml.c

index a7f17b48bf6c182fa7cee09c64400e65e6f44d6b..7ec733059ccddb81837f84ae7c2c07409dceeca4 100644 (file)
@@ -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: