]> granicus.if.org Git - php/commitdiff
w3c adjustments :)
authorChristian Stocker <chregu@php.net>
Mon, 19 Aug 2002 14:01:04 +0000 (14:01 +0000)
committerChristian Stocker <chregu@php.net>
Mon, 19 Aug 2002 14:01:04 +0000 (14:01 +0000)
- has_attributes returns empty string if attribute is not there
- parent_node returns null, if no parent

ext/domxml/php_domxml.c

index 369f2dc01199f468790bc2966227de4a1533264e..b2bb39a28a7a6c8277459628fb4d727074fbca1d 100644 (file)
@@ -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);