|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: steyn dot vanhoute at gmail dot com
New email:
PHP Version: OS:


 [2015-08-20 08:32 UTC] steyn dot vanhoute at gmail dot com
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:

Expected result:
Empty output

Actual result:
Output: "Expand failed !"


Add a Patch

Pull Requests

Add a Pull Request


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

Yeah, that is weird. I've just looked through, seems even in the dev tree yet, there's . Looks like debug output accidentially left unwrapped :) We'll have to rebuild libxml cutting out this piece.

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

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 17:03:43 2023 UTC