cvs: php4 /ext/domxml php_domxml.c

From: Date: Mon, 19 Aug 2002 14:01:07 +0000
Subject: cvs: php4 /ext/domxml php_domxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13461@lists.php.net to get a copy of this message
chregu Mon Aug 19 10:01:07 2002 EDT Modified files: /php4/ext/domxml php_domxml.c Log: w3c adjustments :) - has_attributes returns empty string if attribute is not there - parent_node returns null, if no parent Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.196 php4/ext/domxml/php_domxml.c:1.197 --- php4/ext/domxml/php_domxml.c:1.196 Sat Aug 17 07:47:21 2002 +++ php4/ext/domxml/php_domxml.c Mon Aug 19 10:01:04 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_domxml.c,v 1.196 2002/08/17 11:47:21 chregu Exp $ */ +/* $Id: php_domxml.c,v 1.197 2002/08/19 14:01:04 chregu Exp $ */ /* TODO * - Support Notation Nodes @@ -2274,7 +2274,7 @@ last = nodep->parent; if (!last) { - RETURN_FALSE; + return; } DOMXML_RET_OBJ(rv, last, &ret); @@ -2777,7 +2777,7 @@ value = xmlGetProp(nodep, name); if (!value) { - RETURN_FALSE; + RETURN_EMPTY_STRING(); } else { RETVAL_STRING(value, 1); xmlFree(value);

« previous php.cvs (#13461) next »