Bug #72181 [NEW]: XML Reader - Parser error on valid XML
| From: | alanhmlam at gmail dot com | Date: | Mon, 09 May 2016 16:11:27 +0000 |
| Subject: | Bug #72181 [NEW]: XML Reader - Parser error on valid XML | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200967@lists.php.net to get a copy of this message | ||
From: alanhmlam at gmail dot com
Operating system: Windows Server 2008
PHP version: 7.0.6
Package: XML Reader
Bug Type: Bug
Bug description:XML Reader - Parser error on valid XML
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 bug report at https://bugs.php.net/bug.php?id=72181&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72181&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72181&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72181&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72181&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72181&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72181&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72181&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72181&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72181&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72181&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72181&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72181&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72181&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72181&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72181&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72181&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72181&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72181&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72181&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72181&r=mysqlcfg