Re: libxml returns codes and xmlreader
| From: | Hannes Magnusson | Date: | Fri, 19 Aug 2011 10:44:26 +0000 |
| Subject: | Re: libxml returns codes and xmlreader | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54714@lists.php.net to get a copy of this message | ||
On Fri, Aug 19, 2011 at 12:27, Nicolai Scheer <scope@planetavent.de> wrote:
>
>
> 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.
Use libxml_get_errors()
-Hannes