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: 2017-01-10 08:12 UTC
From: robert dot de dot wilde at online dot nl Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.3.0RC4 OS: CentOS 5.x
Private report: No CVE-ID: None
 [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

Pull Requests

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.
 [2017-01-10 08:12 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:12 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 02 20:01:32 2024 UTC