cvs: php4 /ext/domxml php_domxml.c
| From: | Christian Stocker | Date: | Sat, 18 May 2002 20:19:43 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11990@lists.php.net to get a copy of this message | ||
chregu Sat May 18 16:19:43 2002 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
- delete attributes as well in php_free_xml_node
- more consistent naming in phpinfo()
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.157 php4/ext/domxml/php_domxml.c:1.158
--- php4/ext/domxml/php_domxml.c:1.157 Sat May 18 13:07:59 2002
+++ php4/ext/domxml/php_domxml.c Sat May 18 16:19:43 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.157 2002/05/18 17:07:59 chregu Exp $ */
+/* $Id: php_domxml.c,v 1.158 2002/05/18 20:19:43 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -591,6 +591,7 @@
/* if node has no parent, it will not be freed by php_free_xml_doc, so do it here
and for all children as well. */
if (node->parent == NULL) {
+ attr_list_wrapper_dtor(node->properties);
node_list_wrapper_dtor(node->children);
node_wrapper_dtor(node);
xmlFreeNode(node);
@@ -1432,8 +1433,8 @@
/* don't know why that line was commented out in the previous version, so i left it (cmv) */
php_info_print_table_start();
php_info_print_table_row(2, "DOM/XML", "enabled");
+ php_info_print_table_row(2, "DOM/XML API Version", DOMXML_API_VERSION);
php_info_print_table_row(2, "libxml Version", LIBXML_DOTTED_VERSION);
- php_info_print_table_row(2, "domxml API Version", DOMXML_API_VERSION);
#if defined(LIBXML_HTML_ENABLED)
php_info_print_table_row(2, "HTML Support", "enabled");
#endif
@@ -1972,7 +1973,7 @@
/* }}} */
/* {{{ proto void domxml_node_unlink_node([object node])
- Deletes the node */
+ Deletes the node from tree, but not from memory*/
PHP_FUNCTION(domxml_node_unlink_node)
{
zval *id;
@@ -1989,6 +1990,7 @@
zval_dtor(id);*/ /* This is not enough because the children won't be deleted */
}
/* }}} */
+
/* {{{ proto object domxml_node_replace_node(object domnode)
Replaces one node with another node */