|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57715 Order of XML namespace definitions
Submitted: 2007-06-22 05:26 UTC Modified: 2013-02-18 00:35 UTC
From: Assigned:
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.2.0 OS: Fedora Core 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2007-06-22 05:26 UTC]
The order of namespace defintions in XML generated by SDO appears to vary on Linux compared to Windows

Reproduce code:
The package unit tests

Expected result:
For example, 

Failed asserting that <text> is equal to <text>.
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<HelloType xsi:type="HelloType" xmlns:tns="
Hello" xmlns:xsi=""
Fred</greeting><reversed>derF olleH</reversed></HelloType>
+<HelloType xmlns="" xsi:type="HelloType"
xmlns:tns="" xmlns:xsi="
2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</
greeting><reversed>derF olleH</reversed></HelloType>


Actual result:
see above


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-25 08:47 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.

Simon, you may be correct that this is a Windows/Linux thing, but I find that initially surprising. Would you please also add details of your sdo extension version (and also your Tuscany version if you are using an sdo extension you built yourself), and your libxml version for each environment. The currently recommended version of libxml for php is 2.6.26. 

Since both versions are correct, it would be a SMOP to update the test so that both versions passed. But if we can isolate what the significant difference is in your environments, that may be unnecessary.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 09 05:03:34 2021 UTC