diff options
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 5444ed24eb..0963ad8ad0 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1316,7 +1316,10 @@ PHP_MINFO_FUNCTION(domxml) /* {{{ Methods of Class DomAttribute */ /* {{{ proto array domxml_attr_name(void) - Returns list of attribute names */ + Returns list of attribute names + Notice: domxml_node_name() does exactly the same for attribute-nodes, + is this function here still needed, or would an alias be enough? + */ PHP_FUNCTION(domxml_attr_name) { zval *id; @@ -1465,6 +1468,10 @@ PHP_FUNCTION(domxml_node_name) str = "#text"; break; + case XML_ATTRIBUTE_NODE: + str = n->name; + break; + case XML_CDATA_SECTION_NODE: str = "#cdata-section"; break; |