Re: Re: RFC: Replacing errors with Exceptions
| From: | Greg Beaver | Date: | Sat, 08 Aug 2009 15:02:56 +0000 |
| Subject: | Re: Re: RFC: Replacing errors with Exceptions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45250@lists.php.net to get a copy of this message | ||
Ben Scholzen 'DASPRiD' wrote:
>
> I tested libxml_use_internal_errors() with XMLReader now, and it doesn't
> really work as intended. When calling $reader->read(), and reaching an
> invalid node, there is in fact the error stored in libxml_get_errors(),
> but PHP additionally still throws a "parse error" warning. When then
> trying to supress it there with @$reader->reader(), PHP doesn't throw
> the warning, but libxml also doesn't store the error internally. Passing
> libxml_noerror or libxml_nowarning to $reader->open() doesn't have any
> effect at all.
http://bugs.php.net/report.php
Greg