Bug #70309 [Opn->Ver]: XmlReader read generates output

From: Date: Thu, 20 Aug 2015 10:30:02 +0000
Subject: Bug #70309 [Opn->Ver]: XmlReader read generates output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195369@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70309&edit=1 ID: 70309 Updated by: ab@php.net Reported by: steyn dot vanhoute at gmail dot com Summary: XmlReader read generates output -Status: Open +Status: Verified Type: Bug Package: XML Reader Operating System: Windows 8.1 PHP Version: 7.0.0beta3 -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: @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. Previous Comments: ------------------------------------------------------------------------ [2015-08-20 08:32:17] 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 !" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70309&edit=1

« previous php.bugs (#195369) next »