From 9698d5da4542e25811233832d50ef01dbd2a40f4 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 19 Aug 2002 14:01:04 +0000 Subject: [PATCH] w3c adjustments :) - has_attributes returns empty string if attribute is not there - parent_node returns null, if no parent --- ext/domxml/php_domxml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1