Bug #72181 [Fbk->NoF]: XML Reader - Parser error on valid XML
| From: | php-bugs at lists dot php dot net | Date: | Sun, 22 May 2016 04:22:22 +0000 |
| Subject: | Bug #72181 [Fbk->NoF]: XML Reader - Parser error on valid XML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201219@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72181&edit=1
ID: 72181
Updated by: php-bugs@lists.php.net
Reported by: alanhmlam at gmail dot com
Summary: XML Reader - Parser error on valid XML
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: XML Reader
Operating System: Windows Server 2008
PHP Version: 7.0.6
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2016-05-09 16:18:58] ab@php.net
Thanks for the report. It looks very similar to the bug #71805 which is caused by a libxml
regression. This should be fixed in the 7.0.7RC1. Please check, it'll be out this week.
Thanks.
------------------------------------------------------------------------
[2016-05-09 16:11:23] alanhmlam at gmail dot com
Description:
------------
valid.xml: https://al2k4.s-ul.eu/BGiN0kKt
Reverting back to 7.0.2 will cause XML Reader to read the XML properly.
Version 7.0.3 or higher will cause XML Reader to throw "Input is not proper UTF-8".
Test script:
---------------
<?php
$reader = new XMLReader();
$reader->open("valid.xml");
while($reader->read()) {
}
?>
Expected result:
----------------
No output.
Actual result:
--------------
PHP Warning: XMLReader::read(): file:/C:/Test/valid.xml:6: parser error : Input is not proper
UTF-8, indicate encoding !
Bytes: 0xE2 0x80 0x93 0x20 in C:\Test\test.php on line 5
Warning: XMLReader::read(): file:/C:/Test/valid.xml:6: parser error : Input is not proper UTF-8,
indicate encoding !
Bytes: 0xE2 0x80 0x93 0x20 in C:\Test\test.php on line 5
PHP Warning: XMLReader::read(): f the train station. Open day to be held on Saturday 21st November
between 10am in C:\Test\test.php on line 5
Warning: XMLReader::read(): f the train station. Open day to be held on Saturday 21st November
between 10am in C:\Test\test.php on line 5
PHP Warning: XMLReader::read():
^ in C:\Test\test.php on line 5
Warning: XMLReader::read():
^ in C:\Test\test.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72181&edit=1