From: Christian Stocker Date: Mon, 19 Aug 2002 14:01:04 +0000 (+0000) Subject: w3c adjustments :) X-Git-Tag: RELEASE_0_91~396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9698d5da4542e25811233832d50ef01dbd2a40f4;p=php w3c adjustments :) - has_attributes returns empty string if attribute is not there - parent_node returns null, if no parent --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 369f2dc011..b2bb39a28a 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -2274,7 +2274,7 @@ PHP_FUNCTION(domxml_node_parent) last = nodep->parent; if (!last) { - RETURN_FALSE; + return; } DOMXML_RET_OBJ(rv, last, &ret); @@ -2777,7 +2777,7 @@ PHP_FUNCTION(domxml_elem_get_attribute) value = xmlGetProp(nodep, name); if (!value) { - RETURN_FALSE; + RETURN_EMPTY_STRING(); } else { RETVAL_STRING(value, 1); xmlFree(value);