From: Christian Stocker Date: Mon, 1 Jul 2002 14:48:38 +0000 (+0000) Subject: outcomment everything related to domxml_elem_set_attribute_node(). This X-Git-Tag: xmlrpc_epi_0_51_merge_pt~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1483035b69bf7d52ea25e17c9b95c4bb4d2dc9b;p=php outcomment everything related to domxml_elem_set_attribute_node(). This function is not implemented and shouldn't show up at all for the time being --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index c910c7dfac..c25d26ed01 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -412,7 +412,9 @@ static zend_function_entry php_domxmlelement_class_functions[] = { PHP_FALIAS(set_attribute, domxml_elem_set_attribute, NULL) PHP_FALIAS(remove_attribute, domxml_elem_remove_attribute, NULL) PHP_FALIAS(get_attribute_node, domxml_elem_get_attribute_node, NULL) +/* since this function is not implemented, outcomment it for the time beeing PHP_FALIAS(set_attribute_node, domxml_elem_set_attribute_node, NULL) +*/ PHP_FALIAS(get_elements_by_tagname, domxml_elem_get_elements_by_tagname, NULL) PHP_FALIAS(has_attribute, domxml_elem_has_attribute, NULL) {NULL, NULL, NULL} @@ -2800,6 +2802,7 @@ PHP_FUNCTION(domxml_elem_get_attribute_node) /* {{{ proto bool domxml_elem_set_attribute_node(object attr) Sets value of given attribute */ +/* since this function is not implemented, outcomment it for the time beeing PHP_FUNCTION(domxml_elem_set_attribute_node) { zval *id, *arg1, *rv = NULL; @@ -2815,7 +2818,7 @@ PHP_FUNCTION(domxml_elem_set_attribute_node) WRONG_PARAM_COUNT; } - /* FIXME: The following line doesn't work */ + FIXME: The following line doesn't work newattrp = xmlCopyProp(nodep, attrp); if (!newattrp) { php_error(E_WARNING, "%s(): no such attribute '%s'", get_active_function_name(TSRMLS_C), attrp->name); @@ -2824,6 +2827,7 @@ PHP_FUNCTION(domxml_elem_set_attribute_node) DOMXML_RET_OBJ(rv, (xmlNodePtr) newattrp, &ret); } +*/ /* }}} */ /* {{{ proto string domxml_elem_has_attribute(string attrname) diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h index 582980cdd9..0ba434f88e 100644 --- a/ext/domxml/php_domxml.h +++ b/ext/domxml/php_domxml.h @@ -163,7 +163,9 @@ PHP_FUNCTION(domxml_elem_get_attribute); PHP_FUNCTION(domxml_elem_set_attribute); PHP_FUNCTION(domxml_elem_remove_attribute); PHP_FUNCTION(domxml_elem_get_attribute_node); +/* since this function is not really implemented, outcomment it for the time beeing PHP_FUNCTION(domxml_elem_set_attribute_node); +*/ PHP_FUNCTION(domxml_elem_get_elements_by_tagname); PHP_FUNCTION(domxml_elem_has_attribute); /* Class CData methods */