cvs: php4 /ext/domxml php_domxml.c

From: Date: Wed, 17 Jul 2002 08:57:29 +0000
Subject: cvs: php4 /ext/domxml php_domxml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12868@lists.php.net to get a copy of this message
chregu Wed Jul 17 04:57:29 2002 EDT Modified files: /php4/ext/domxml php_domxml.c Log: nodename is not always set, check if it really is. Index: php4/ext/domxml/php_domxml.c diff -u php4/ext/domxml/php_domxml.c:1.180 php4/ext/domxml/php_domxml.c:1.181 --- php4/ext/domxml/php_domxml.c:1.180 Sat Jul 13 01:53:06 2002 +++ php4/ext/domxml/php_domxml.c Wed Jul 17 04:57:29 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_domxml.c,v 1.180 2002/07/13 05:53:06 sniper Exp $ */ +/* $Id: php_domxml.c,v 1.181 2002/07/17 08:57:29 chregu Exp $ */ /* TODO * - Support Notation Nodes @@ -1382,7 +1382,9 @@ } add_assoc_string(errormessages,"errormessage",buf,1); input = ctxt->input; - add_assoc_string(errormessages,"nodename",ctxt->name,1); + if (ctxt->name) { + add_assoc_string(errormessages,"nodename",ctxt->name,1); + } if (input != NULL) { add_assoc_long(errormessages,"line",input->line); add_assoc_long(errormessages,"col",input->col);

« previous php.cvs (#12868) next »