diff options
| author | Christian Stocker <chregu@php.net> | 2003-04-02 10:30:05 +0000 |
|---|---|---|
| committer | Christian Stocker <chregu@php.net> | 2003-04-02 10:30:05 +0000 |
| commit | e131b99b2a07dfd36cc9b4fe248466918262a51e (patch) | |
| tree | c17101f282149d6b0d54717e3227445a9e7e55a0 /ext/domxml/php_domxml.c | |
| parent | 7dab6484260bb31d2c39b5f3845cab9533a71748 (diff) | |
| download | php-git-e131b99b2a07dfd36cc9b4fe248466918262a51e.tar.gz | |
Patch for Bug #22774 by Rob Richards
Diffstat (limited to 'ext/domxml/php_domxml.c')
| -rw-r--r-- | ext/domxml/php_domxml.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index f7782e791e..5df30520d0 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1473,10 +1473,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); @@ -1488,6 +1484,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; |
