php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57230 List items output with extra elements
Submitted: 2006-09-14 04:08 UTC Modified: 2007-06-25 08:48 UTC
From: simonslaws at googlemail dot com Assigned:
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.1.4 OS: XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-09-14 04:08 UTC] simonslaws at googlemail dot com
Description:
------------
When you read a list into SDO from and XML file and write it back out to file the input and output don't match

Reproduce code:
---------------
With schema 

  <simpleType name="SimpleTypeWithListType">
  	<list itemType="string"/>
  </simpleType>
                 
  <element name="RootElement16">
    <complexType>
      <sequence>
        <element name="SimpleTypeWithList" type="tns:SimpleTypeWithListType"/>                               
      </sequence>
    </complexType>
  </element>

And input

<tns:RootElement16 xmlns:tns="http://www.apache.org/tuscany/interop"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.apache.org/tuscany/interop interop16.xsd">
	<SimpleTypeWithList>
		listmember1 listmember2
	</SimpleTypeWithList>
</tns:RootElement16>

Expected result:
----------------
<tns:RootElement16 xmlns:tns="http://www.apache.org/tuscany/interop"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.apache.org/tuscany/interop interop16.xsd">
	<SimpleTypeWithList>
		listmember1 listmember2
	</SimpleTypeWithList>
</tns:RootElement16>

Actual result:
--------------
<RootElement16 xmlns="http://www.apache.org/tuscany/interop"   xsi:type="RootElement16" xmlns:tns="http://www.apache.org/tuscany/interop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SimpleTypeWithList>
<values>listmember1</values>
<values>listmember2</values>
</SimpleTypeWithList>
</RootElement16>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-24 18:06 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.


I think you're probably describing a Tuscany problem, but there's no link in the defect and I don't see an obvious issue which corresponds. Please either add a link, or if this is a problem with the PHP extension, confirm that it still exists with the latest release.
 [2007-06-25 08:48 UTC] cem@php.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-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 27 06:01:31 2019 UTC