From: Christian Stocker Date: Wed, 2 Apr 2003 10:31:33 +0000 (+0000) Subject: Patch for Bug #22774 by Rob Richards X-Git-Tag: RELEASE_0_5~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19771e0433584b270add7be30064ba1f8c0540bb;p=php Patch for Bug #22774 by Rob Richards --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 8262c1be38..5d9057f6dd 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1478,10 +1478,6 @@ PHP_MINIT_FUNCTION(domxml) { zend_class_entry ce; - le_domxmldocp = zend_register_list_destructors_ex(php_free_xml_doc, NULL, "domdocument", module_number); - /* Freeing the document contains freeing the complete tree. - Therefore nodes, attributes etc. may not be freed seperately. - */ le_domxmlnodep = zend_register_list_destructors_ex(php_free_xml_node, NULL, "domnode", module_number); le_domxmlcommentp = zend_register_list_destructors_ex(php_free_xml_node, NULL, "domcomment", module_number); le_domxmlattrp = zend_register_list_destructors_ex(php_free_xml_attr, NULL, "domattribute", module_number); @@ -1493,6 +1489,11 @@ PHP_MINIT_FUNCTION(domxml) le_domxmlpip = zend_register_list_destructors_ex(php_free_xml_node, NULL, "dompi", module_number); le_domxmlparserp = zend_register_list_destructors_ex(php_free_xml_parser, NULL, "domparser", module_number); le_domxmldoctypep = zend_register_list_destructors_ex(php_free_xml_node, NULL, "domdocumenttype", module_number); + le_domxmldocp = zend_register_list_destructors_ex(php_free_xml_doc, NULL, "domdocument", module_number); + /* Freeing the document contains freeing the complete tree. + Therefore nodes, attributes etc. may not be freed seperately. + Moved to end of list to support loading via dl() + */ /* Not yet initialized le_*s */ le_domxmlnotationp = -10003;