|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58038 Repeated nill elements of extended type cause "Parser found unknown element" ex
Submitted: 2008-02-11 10:02 UTC Modified: 2008-02-14 13:09 UTC
From: Assigned: TUSCANY-2041 (profile)
Status: Closed Package: SCA_SDO (PECL)
PHP Version: 5.2.0 OS: XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 + 46 = ?
Subscribe to this entry?

 [2008-02-11 10:02 UTC]
The SDO fails to read a file with repeated nill elements when the type is and extension of a simple type. This has been reported in Tuscany as

Reproduce code:
With the schema

<schema xmlns=""
        xmlns:tns="" elementFormDefault="qualified">
        <element name="Top">
<element name="attribute" nillable="true" minOccurs="0" maxOccurs="unbounded">
<extension base="string">
<attribute name="name" type="string" use="required"/>


<tns:Top xmlns:tns=""
         xsi:schemaLocation=" AnnonTypes2.xsd ">
  <tns:attribute name="ABC" xsi:nil="true" xmlns:xsi=""/>
  <!--tns:attribute name="DEF" xsi:nil="true" xmlns:xsi=""/>
  <tns:attribute name="GHI" xsi:nil="true" xmlns:xsi=""/>
  <tns:attribute name="JKL" xsi:nil="true" xmlns:xsi=""-->

Expected result:
Successfully parsed input

Actual result:
When multiple attribute elements are present the following error is reported.

SDO_DAS_XML_ParserException Object
    [message:protected] => SDO_DAS_XML::loadFile - Unable to parse the supplied
xml file
1 parse error(s) occurred when parsing the file 'AnnonTypes2.xml':
1. Parser found unknown element attribute

    [string:private] =>
    [code:protected] => 0
    [file:protected] => C:\simon\php\workspace\php-branch\phpscripts\chrisdougla
    [line:protected] => 52
    [trace:private] => Array
            [0] => Array
                    [file] => C:\simon\php\workspace\php-branch\phpscripts\chris
                    [line] => 52
                    [function] => loadFile
                    [class] => SDO_DAS_XML
                    [type] => ->
                    [args] => Array
                            [0] => AnnonTypes2.xml



    [cause] =>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-14 13:06 UTC] simonslaws at googlemail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Fixed in FULMAR based on changes made in Tuscany C++ SDO under JIRA
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri May 27 23:05:51 2022 UTC