Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61330 invoked from network); 8 Aug 2009 15:03:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2009 15:03:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.198.230 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.198.230 rv-out-0506.google.com Received: from [209.85.198.230] ([209.85.198.230:52404] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/34-40613-6A39D7A4 for ; Sat, 08 Aug 2009 11:03:03 -0400 Received: by rv-out-0506.google.com with SMTP id l9so611104rvb.23 for ; Sat, 08 Aug 2009 08:03:00 -0700 (PDT) Received: by 10.140.178.8 with SMTP id a8mr158923rvf.42.1249743779993; Sat, 08 Aug 2009 08:02:59 -0700 (PDT) Received: from monster.local ([76.84.30.125]) by mx.google.com with ESMTPS id g22sm10758211rvb.32.2009.08.08.08.02.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Aug 2009 08:02:59 -0700 (PDT) Message-ID: <4A7D93A0.1010404@chiaraquartet.net> Date: Sat, 08 Aug 2009 10:02:56 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Ben Scholzen 'DASPRiD' CC: internals@lists.php.net References: <7f3ed2c30907300148k246bb727qe60b888ddfe5523f@mail.gmail.com> <1B.20.03345.EA94D7A4@pb1.pair.com> In-Reply-To: <1B.20.03345.EA94D7A4@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: RFC: Replacing errors with Exceptions From: greg@chiaraquartet.net (Greg Beaver) Ben Scholzen 'DASPRiD' wrote: > > I tested libxml_use_internal_errors() with XMLReader now, and it doesn't > really work as intended. When calling $reader->read(), and reaching an > invalid node, there is in fact the error stored in libxml_get_errors(), > but PHP additionally still throws a "parse error" warning. When then > trying to supress it there with @$reader->reader(), PHP doesn't throw > the warning, but libxml also doesn't store the error internally. Passing > libxml_noerror or libxml_nowarning to $reader->open() doesn't have any > effect at all. http://bugs.php.net/report.php Greg