summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/domxml/php_domxml.c4
1 files 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);