cvs: php4 /ext/domxml php_domxml.c
| From: | Christian Stocker | Date: | Wed, 02 Apr 2003 10:31:33 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19967@lists.php.net to get a copy of this message | ||
chregu Wed Apr 2 05:31:33 2003 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
Patch for Bug #22774 by Rob Richards
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.241 php4/ext/domxml/php_domxml.c:1.242
--- php4/ext/domxml/php_domxml.c:1.241 Thu Mar 20 04:48:19 2003
+++ php4/ext/domxml/php_domxml.c Wed Apr 2 05:31:33 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.241 2003/03/20 09:48:19 chregu Exp $ */
+/* $Id: php_domxml.c,v 1.242 2003/04/02 10:31:33 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -1478,10 +1478,6 @@
{
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 @@
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;