php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70309 XmlReader read generates output
Submitted: 2015-08-20 08:32 UTC Modified: 2015-09-07 15:37 UTC
From: steyn dot vanhoute at gmail dot com Assigned: ab (profile)
Status: Closed Package: XML Reader
PHP Version: 7.0.0beta3 OS: Windows 8.1
Private report: No CVE-ID: None
 [2015-08-20 08:32 UTC] steyn dot vanhoute at gmail dot com
Description:
------------
I want to read a XML file with the following snippet (see url).

When the script comes to the read() function, it throws output.
I don't want plain output, I want a warning/exception/fatal error, but no regular output.

Even with the dirty way of using ob_start and ob_end_clean I get output.

Test script:
---------------
http://pastebin.com/HThPVjne

Expected result:
----------------
Empty output

Actual result:
--------------
Output: "Expand failed !"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-20 10:30 UTC] ab@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: ab
 [2015-08-20 10:30 UTC] ab@php.net
@steyn thanks for the report.

Yeah, that is weird. I've just looked through, seems even in the dev tree yet, there's https://git.gnome.org/browse/libxml2/tree/xmlreader.c#n981 . Looks like debug output accidentially left unwrapped :) We'll have to rebuild libxml cutting out this piece.

Thanks.
 [2015-09-07 15:37 UTC] ab@php.net
-Status: Verified +Status: Closed
 [2015-09-07 15:37 UTC] ab@php.net
This is fixed with RC3, NEWS updated.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 08:01:28 2024 UTC