]> granicus.if.org Git - php/commitdiff
Fixed bug #30566 (attribute namespace URIs are inconsistent when parsing).
authorRob Richards <rrichards@php.net>
Sat, 13 Nov 2004 14:32:44 +0000 (14:32 +0000)
committerRob Richards <rrichards@php.net>
Sat, 13 Nov 2004 14:32:44 +0000 (14:32 +0000)
ext/xml/compat.c

index a5797ad37d13563e1e60ad3181e0f116cfb77601..7bb58c4d290a46944955a638c0e6f50ce7592908 100644 (file)
@@ -88,7 +88,7 @@ _start_element_handler_ns(void *user, const xmlChar *name, const xmlChar *prefix
                for (i = 0; i < nb_attributes; i += 1) {
 
                        if (attributes[y+1] != NULL) {
-                               _qualify_namespace(parser, attributes[y] , attributes[2], &qualified_name_attr);
+                               _qualify_namespace(parser, attributes[y] , attributes[y + 2], &qualified_name_attr);
                        } else {
                                qualified_name_attr = xmlStrdup(attributes[y]);
                        }