Re: libxml returns codes and xmlreader
| From: | Nicolai Scheer | Date: | Fri, 19 Aug 2011 11:04:38 +0000 |
| Subject: | Re: libxml returns codes and xmlreader | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54715@lists.php.net to get a copy of this message | ||
Hi!
> On Fri, Aug 19, 2011 at 12:27, Nicolai Scheer
<scope@planetavent.de>
> 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