shane           Sun Oct  5 17:53:09 2003 EDT

  Modified files:              
    /php-src/ext/dom    node.c 
  Log:
  fix crash building nodeName
  
  
Index: php-src/ext/dom/node.c
diff -u php-src/ext/dom/node.c:1.12 php-src/ext/dom/node.c:1.13
--- php-src/ext/dom/node.c:1.12 Sun Oct  5 07:52:22 2003
+++ php-src/ext/dom/node.c      Sun Oct  5 17:53:08 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: node.c,v 1.12 2003/10/05 11:52:22 rrichards Exp $ */
+/* $Id: node.c,v 1.13 2003/10/05 21:53:08 shane Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -78,9 +78,11 @@
                        if (ns != NULL && ns->prefix) {
                                qname = xmlStrdup(ns->prefix);
                                qname = xmlStrcat(qname, ":");
+                               qname = xmlStrcat(qname, nodep->name);
+                               str = qname;
+                       } else {
+                               str = (char *) nodep->name;
                        }
-                       qname = xmlStrcat(qname, nodep->name);
-                       str = qname;
                        break;
                case XML_DOCUMENT_TYPE_NODE:
                case XML_DTD_NODE:

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to