php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58899 0 parse errors occured, but thrown.
Submitted: 2009-10-17 11:07 UTC Modified: 2010-02-09 01:58 UTC
From: robert dot de dot wilde at online dot nl Assigned:
Status: Open Package: SCA_SDO (PECL)
PHP Version: 5.3.0RC4 OS: CentOS 5.x
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-10-17 11:07 UTC] robert dot de dot wilde at online dot nl
Description:
------------
The script gives me a fatal error. I just try to load the XML Schema example code from w3schools, but it didn't work

I tried removing whitespaces, it didn't help;


Reproduce code:
---------------
<?php
	$oXMLFactory = SDO_DAS_XML::create();
	$oXMLFactory->loadString('<?xml version="1.0"?>
															<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="default">
																
																<xs:complexType name="nodeType">
															    <xs:sequence>
															      <xs:element name="to" type="xs:string"/>
															      <xs:element name="from" type="xs:string"/>
															      <xs:element name="heading" type="xs:string"/>
															      <xs:element name="body" type="xs:string"/>
															    </xs:sequence>
															  </xs:complexType>
																
																<xs:element name="note" type="noteType"/>
															
															</xs:schema>');
?>

Expected result:
----------------
Loading the definition;

NO ERROR;

Actual result:
--------------
Fatal error: Uncaught exception 'SDO_DAS_XML_ParserException' with message 'SDO_DAS_XML::loadString - Unable to parse the supplied xml string 0 parse error(s) occurred when parsing the string: ' in /var/www/client/some.ext/http/rows/index.php:3 Stack trace: #0 /var/www/client/some.ext/http/rows/index.php(3): SDO_DAS_XML->loadString('<?xml version="...') #1 {main} thrown in /var/www/client/some.ext/http/rows/index.php on line 3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-09 01:58 UTC] robert dot de dot wilde at online dot nl
I think it's a bad thing no one seems to bother.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 05:03:19 2014 UTC