diff options
Diffstat (limited to 'ext/dom/attr.c')
| -rw-r--r-- | ext/dom/attr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/dom/attr.c b/ext/dom/attr.c index 7d1642e62..5504fddf8 100644 --- a/ext/dom/attr.c +++ b/ext/dom/attr.c @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: attr.c,v 1.18.2.2 2006/05/03 08:43:04 rrichards Exp $ */ +/* $Id: attr.c,v 1.18.2.2.2.1 2006/05/22 17:12:25 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -262,7 +262,6 @@ PHP_FUNCTION(dom_attr_is_id) zval *id; dom_object *intern; xmlAttrPtr attrp; - xmlNodePtr nodep; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &id, dom_attr_class_entry) == FAILURE) { return; @@ -270,9 +269,7 @@ PHP_FUNCTION(dom_attr_is_id) DOM_GET_OBJ(attrp, id, xmlAttrPtr, intern); - nodep = attrp->parent; - - if (xmlIsID(attrp->doc, nodep, attrp)) { + if (attrp->atype == XML_ATTRIBUTE_ID) { RETURN_TRUE; } else { RETURN_FALSE; |
