diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:36:21 -0400 |
| commit | d29a4fd2dd3b5d4cf6e80b602544d7b71d794e76 (patch) | |
| tree | b38e2e5c6974b9a15f103e5cf884cba9fff90ef4 /ext/dom/attr.c | |
| parent | a88a88d0986a4a32288c102cdbfebd78d7e91d99 (diff) | |
| download | php-upstream/5.2.0.tar.gz | |
Imported Upstream version 5.2.0upstream/5.2.0
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; |
