Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43089 invoked from network); 19 Aug 2011 11:04:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 11:04:42 -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:54426] helo=xa8.serverdomain.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/36-11562-9434E4E4 for ; Fri, 19 Aug 2011 07:04:42 -0400 Received: from xa8.serverdomain.org (xa8 [89.107.186.104]) (Authenticated sender: xa8190p1) by xa8.serverdomain.org (xa8.serverdomain.org) with ESMTPA id A68CB28185DD6 for ; Fri, 19 Aug 2011 13:04:38 +0200 (CEST) Received: from 62.156.253.205 (SquirrelMail authenticated user xa8190p1) by xa8.serverdomain.org with HTTP; Fri, 19 Aug 2011 13:04:38 +0200 (CEST) Message-ID: <46024.62.156.253.205.1313751878.squirrel@xa8.serverdomain.org> In-Reply-To: References: <42854.62.156.253.205.1313749679.squirrel@xa8.serverdomain.org> Date: Fri, 19 Aug 2011 13:04:38 +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! > On Fri, Aug 19, 2011 at 12:27, Nicolai Scheer > wrote: >> I've >> noticed, that some of the libxml return codes >> get >> "simplified" when used in xmlreader which can be quite >> problematic. > Use libxml_get_errors() So you're suggesting to call another function rather than returning something that is already there? I see how libxml_get_errors() can be used to work around this, but to my mind, this function should not be called unless I know that in fact there are errors. Nevertheless, is there a "real" reason why this is not implemented? Anyone else feeling uncomfortable with "calling additional functions to check for error conditions"? Greetings, Nico