chregu          Mon Feb 23 10:54:46 2004 EDT

  Modified files:              
    /php-src/ext/xml    compat.c 
  Log:
  - mixed up name and value... fixed
  
  
http://cvs.php.net/diff.php/php-src/ext/xml/compat.c?r1=1.29&r2=1.30&ty=u
Index: php-src/ext/xml/compat.c
diff -u php-src/ext/xml/compat.c:1.29 php-src/ext/xml/compat.c:1.30
--- php-src/ext/xml/compat.c:1.29       Mon Feb 23 10:43:49 2004
+++ php-src/ext/xml/compat.c    Mon Feb 23 10:54:45 2004
@@ -86,18 +86,18 @@
                xmlChar    *qualified_name_attr = NULL;
                
                for (i = 0; i < nb_attributes; i += 1) {
-                       attrs[z] =  xmlStrdup( attributes[y]);
-                       
+
                        if (attributes[y+1] != NULL) {
-                               _qualify_namespace(parser, xmlStrndup(attributes[y + 
3] , (int) (attributes[y + 4] - attributes[y + 3])), attributes[2], 
&qualified_name_attr);
+                               _qualify_namespace(parser, attributes[y] , 
attributes[2], &qualified_name_attr);
                        } else {
-                               qualified_name_attr = xmlStrndup(attributes[y + 3] , 
(int) (attributes[y + 4] - attributes[y + 3]));
+                               qualified_name_attr = xmlStrdup(attributes[y]);
                        }
-                       attrs[z + 1] = qualified_name_attr;
+                       attrs[z] = qualified_name_attr;
+                       attrs[z + 1] = xmlStrndup(attributes[y + 3] , (int) 
(attributes[y + 4] - attributes[y + 3]));
                        z += 2;
                        y += 5;
                }
-               
+
                attrs[z] = NULL;
        }
        parser->h_start_element(parser->user, (const XML_Char *) qualified_name, 
(const XML_Char **) attrs);

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

Reply via email to