diff options
| author | Christian Stocker <chregu@php.net> | 2002-08-19 14:01:04 +0000 |
|---|---|---|
| committer | Christian Stocker <chregu@php.net> | 2002-08-19 14:01:04 +0000 |
| commit | 9698d5da4542e25811233832d50ef01dbd2a40f4 (patch) | |
| tree | c7559888d7fbc897f1d4ef0167f0a9eb5c72b813 /ext/domxml/php_domxml.c | |
| parent | 1fb6a30f0fac261559af6f990e7417c360aca036 (diff) | |
| download | php-git-9698d5da4542e25811233832d50ef01dbd2a40f4.tar.gz | |
w3c adjustments :)
- has_attributes returns empty string if attribute is not there
- parent_node returns null, if no parent
Diffstat (limited to 'ext/domxml/php_domxml.c')
| -rw-r--r-- | ext/domxml/php_domxml.c | 4 |
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); |
