XML parser callback for <?xml?> attributes is incorrect
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1301
Reported by Jonas Wallden jonasw@roxen.com
> xp->parse("<?xml version='1.0' a='a' b='b'?>",
lambda(mixed ...args) { return args; });
Result: ({ /* 1 element */
({ /* 5 elements */
"<?xml",
0,
([ /* 3 elements */
"a":"a",
"b":"b",
"on":"1.0" /* this ought to be "version" */
]),
0,
([ /* 1 element */
"location":33
])
})
})
Reproduced on both 7.0.283 and 7.2.12.