Bug #66695 [NoF->Opn]: A well-formed XML string can't be parsed

From: Date: Sun, 21 Aug 2016 10:48:55 +0000
Subject: Bug #66695 [NoF->Opn]: A well-formed XML string can't be parsed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203447@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66695&edit=1 ID: 66695 Updated by: cmb@php.net Reported by: mart at krediidiinfo dot ee Summary: A well-formed XML string can't be parsed -Status: No Feedback +Status: Open Type: Bug Package: SimpleXML related Operating System: Suse Linux Enterprise 11 SP3 PHP Version: 5.5.9 Assigned To: cmb Block user comment: N Private report: N New Comment: Feedback had been provided via email. I'll investigate. Previous Comments: ------------------------------------------------------------------------ [2016-08-21 04:22:23] php-bugs 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 "Re-Opened". Thank you. ------------------------------------------------------------------------ [2016-08-08 09:41:09] cmb@php.net http://www.krediidiinfo.ee/files/test.xml gives 404 now. Can you please make it available again? ------------------------------------------------------------------------ [2014-02-11 10:29:03] mart at krediidiinfo dot ee Put the xml to url also (unpacked, it's 20MB): http://www.krediidiinfo.ee/files/test.xml ------------------------------------------------------------------------ [2014-02-11 10:22:05] mart at krediidiinfo dot ee Description: ------------ A well-formed XML (attached below in the patch file place, zipped) can't be parsed by SimpleXMLElement::__construct, it gives internal error instead. No extra modules, packages, no modifications to php.ini Test script: --------------- <?php $contentXML = file_get_contents("test.xml"); $sxml = new SimpleXMLElement($contentXML); ?> Expected result: ---------------- SimpleXMLElement object representing data. Actual result: -------------- Warning: SimpleXMLElement::__construct(): Entity: line 182036: parser error : internal error in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Warning: SimpleXMLElement::__construct(): vi vald, Ida-Virumaa 41531 (tel 111 2345, e-posti aadress: nimi.teine notar.ee). in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Warning: SimpleXMLElement::__construct(): ^ in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Warning: SimpleXMLElement::__construct(): Entity: line 182036: parser error : Extra content at the end of the document in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Warning: SimpleXMLElement::__construct(): vi vald, Ida-Virumaa 41531 (tel 111 2345, e-posti aadress: nimi.teine notar.ee). in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Warning: SimpleXMLElement::__construct(): ^ in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in test.php on line 3 Exception: String could not be parsed as XML in test.php on line 3 Call Stack: 0.0001 229872 1. {main}() test.php:0 0.0111 21037824 2. SimpleXMLElement->__construct() test.php:3 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66695&edit=1

« previous php.bugs (#203447) next »