cvs: php4(PHP_4_3) /ext/domxml php_domxml.c
| From: | Christian Stocker | Date: | Wed, 02 Apr 2003 10:30:06 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19966@lists.php.net to get a copy of this message | ||
chregu Wed Apr 2 05:30:06 2003 EDT
Modified files: (Branch: PHP_4_3)
/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.218.2.12 php4/ext/domxml/php_domxml.c:1.218.2.13
--- php4/ext/domxml/php_domxml.c:1.218.2.12 Thu Mar 20 04:43:09 2003
+++ php4/ext/domxml/php_domxml.c Wed Apr 2 05:30:05 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.218.2.12 2003/03/20 09:43:09 chregu Exp $ */
+/* $Id: php_domxml.c,v 1.218.2.13 2003/04/02 10:30:05 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -1473,10 +1473,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);
@@ -1488,6 +1484,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;