php.net |  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: slaws@php.net Assigned:
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.2.0 OS: Fedora Core 6
Private report: No CVE-ID: None
 [2007-06-22 05:26 UTC] slaws@php.net
Description:
------------
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, 

testGETForm(SCA_RestRpcTest)
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="http://www.example.org/
Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.example.org/Hello"><name>name</name><greeting>Hello
Fred</greeting><reversed>derF olleH</reversed></HelloType>
+<HelloType xmlns="http://www.example.org/Hello" xsi:type="HelloType"
xmlns:tns="http://www.example.org/Hello" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"><name>name</name><greeting>Hello Fred</
greeting><reversed>derF olleH</reversed></HelloType>

/usr/local/lib/php/test/SCA_SDO/tests/SCA/phpunit/RestRpc/
RestRpcTest.php:95
/usr/local/lib/php/test/SCA_SDO/tests/TestSuite.php:41
/usr/local/lib/php/test/SCA_SDO/tests/TestSuite.php:58
/usr/local/lib/php/test/SCA_SDO/tests/AllTests.php:28 

Actual result:
--------------
see above

Patches

Pull Requests

History

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

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC