cvs: php4(PHP_4_3) /ext/domxml php_domxml.c

From: Date: Wed, 09 Apr 2003 20:36:44 +0000
Subject: cvs: php4(PHP_4_3) /ext/domxml php_domxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20200@lists.php.net to get a copy of this message
helly Wed Apr 9 16:36:44 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/domxml php_domxml.c Log: MFH Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.218.2.16 php4/ext/domxml/php_domxml.c:1.218.2.17 --- php4/ext/domxml/php_domxml.c:1.218.2.16 Wed Apr 9 03:33:19 2003 +++ php4/ext/domxml/php_domxml.c Wed Apr 9 16:36:44 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_domxml.c,v 1.218.2.16 2003/04/09 07:33:19 chregu Exp $ */ +/* $Id: php_domxml.c,v 1.218.2.17 2003/04/09 20:36:44 helly Exp $ */ /* TODO * - Support Notation Nodes @@ -1798,7 +1798,7 @@ DOMXML_NO_ARGS(); /* RETURN_STRING((char *) xmlNodeGetContent((xmlNodePtr) attrp), 1); */ - if (content = xmlNodeGetContent((xmlNodePtr) attrp)) { + if ((content = xmlNodeGetContent((xmlNodePtr) attrp)) != NULL) { RETVAL_STRING(content,1); } else { RETURN_EMPTY_STRING(); @@ -1879,7 +1879,7 @@ DOMXML_NO_ARGS(); /* RETURN_STRING(xmlNodeGetContent(nodep), 1); */ - if (content = xmlNodeGetContent(nodep)) { + if ((content = xmlNodeGetContent(nodep)) != NULL) { RETVAL_STRING(content,1); } else { RETURN_EMPTY_STRING();

« previous php.cvs (#20200) next »