Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54713 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32759 invoked from network); 19 Aug 2011 10:28:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 10:28:03 -0000 Authentication-Results: pb1.pair.com header.from=scope@planetavent.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scope@planetavent.de; spf=permerror; 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:40101] helo=xa8.serverdomain.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/14-11562-1BA3E4E4 for ; Fri, 19 Aug 2011 06:28:02 -0400 Received: from xa8.serverdomain.org (xa8 [89.107.186.104]) (Authenticated sender: xa8190p1) by xa8.serverdomain.org (xa8.serverdomain.org) with ESMTPA id 27CAE28185DD6 for ; Fri, 19 Aug 2011 12:27:59 +0200 (CEST) Received: from 62.156.253.205 (SquirrelMail authenticated user xa8190p1) by xa8.serverdomain.org with HTTP; Fri, 19 Aug 2011 12:27:59 +0200 (CEST) Message-ID: <42854.62.156.253.205.1313749679.squirrel@xa8.serverdomain.org> Date: Fri, 19 Aug 2011 12:27:59 +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: libxml returns codes and xmlreader From: scope@planetavent.de ("Nicolai Scheer") Hi again! Please excuse if this is a duplicate, my web mailer choked on that one :/ ---------- I've noticed, that some of the libxml return codes get "simplified" when used in xmlreader which can be quite problematic. I opened a bug report about this behaviour: https://bugs.php.net/bug.php?id=55459 The question is, wether this is considered a bug at all or is rather seen as a change request. Throughout the whole xmlreader extension libxml's 1, 0, -1 return codes are simply mapped to true/false. The fix is trivial, but I don't know if changing the return code of these php functions might break existing code. I'm short of a really easy way of working around that problem. Of course I could rename the xmlreader extension, fix it and could load a fixed version, but that seems awkward. Any suggestions? Greetings, Nico