Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
6004 | minor | always | 05-15-16 08:38 | 07-03-16 13:07 | |
|
|||||
Reporter: | ebo | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | not fixable | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0006004: SimpleXML reorders attributes | ||||
Description: |
When adding attributes with SimpleXML, the attributes get reordered in alphabetic order. This causes issues when comparing XML documents. The following code snippet: $xml=simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><test/>'); $child=$xml->addChild('foo', 'bar'); $child->addAttribute('xyz', 'first'); $child->addAttribute('abc', 'second'); echo ' ' . htmlentities($xml->asXML()) . ''; Outputs: <?xml version="1.0"?> <test><foo abc="second" xyz="first">bar</foo></test> |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|