Bug #72181 [Opn->Fbk]: XML Reader - Parser error on valid XML

From: Date: Mon, 09 May 2016 16:18:59 +0000
Subject: Bug #72181 [Opn->Fbk]: XML Reader - Parser error on valid XML
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200968@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:         ab@php.net
 Reported by:        alanhmlam at gmail dot com
 Summary:            XML Reader - Parser error on valid XML
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            XML Reader
 Operating System:   Windows Server 2008
 PHP Version:        7.0.6
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (6 messages)

« previous php.bugs (#200968) next »