Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54727 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70329 invoked from network); 19 Aug 2011 12:47:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 12:47:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=scope@planetavent.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scope@planetavent.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain planetavent.de from 89.107.186.104 cause and error) X-PHP-List-Original-Sender: scope@planetavent.de X-Host-Fingerprint: 89.107.186.104 xa8.serverdomain.org Received: from [89.107.186.104] ([89.107.186.104:44806] helo=xa8.serverdomain.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/CB-11562-C4B5E4E4 for ; Fri, 19 Aug 2011 08:47:09 -0400 Received: from xa8.serverdomain.org (xa8 [89.107.186.104]) (Authenticated sender: xa8190p1) by xa8.serverdomain.org (xa8.serverdomain.org) with ESMTPA id C516B281D7B24 for ; Fri, 19 Aug 2011 14:47:05 +0200 (CEST) Received: from 62.156.253.205 (SquirrelMail authenticated user xa8190p1) by xa8.serverdomain.org with HTTP; Fri, 19 Aug 2011 14:47:05 +0200 (CEST) Message-ID: <61498.62.156.253.205.1313758025.squirrel@xa8.serverdomain.org> In-Reply-To: <4E4E50CD.3000509@cdatazone.org> References: <42854.62.156.253.205.1313749679.squirrel@xa8.serverdomain.org> <46024.62.156.253.205.1313751878.squirrel@xa8.serverdomain.org> <4E4E50CD.3000509@cdatazone.org> Date: Fri, 19 Aug 2011 14:47:05 +0200 (CEST) To: internals@lists.php.net User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] libxml returns codes and xmlreader From: scope@planetavent.de ("Nicolai Scheer") Hi! [...] >> Nevertheless, is there a "real" reason >> why this is not implemented? Anyone else feeling uncomfortable with >> "calling additional functions to check for error conditions"? > It is modeled after the .NET XMLReader interface with simple boolean > return values. You can file a feature request to enable exceptions to be > thrown from the reader on invalid XML. i.e. argument to constructor > whether or not to throw exceptions (default false). Right now regardless > of returning false or an int value, you would have to check something to > determine if it were an error or no data (either a function as it is > right now or for a specific return value), so it's always an extra step. Of course it is an extra step both ways. But using libxml_get_errors() forces me to use libxml_use_internal_errors and libxml_clear_errors afterwards. Until xmlreader throws exceptions on errors it is not modeled after the .NET XMLReader, because that part is really missing. So the argument chain is somehow broken here :) Is it possible to reopen my bug and change it to a feature request or do I have to resubmit my thoughts? Greetings, Nico