Re: Exceptions and a real example: Tidy
| From: | Sterling Hughes | Date: | Fri, 16 Apr 2004 00:07:20 +0000 |
| Subject: | Re: Exceptions and a real example: Tidy | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9245@lists.php.net to get a copy of this message | ||
On Apr 15, 2004, at 4:12 PM, John Coggeshall wrote:
Attached is a patch which I hope will keep people happy when it comes to specifically the Tidy extension. I'd like some feedback on this before I commit it / throw it away: Changes: - All errors were re-evaluated, and those (such as a bogus config- TIDY_THROW("Could not retrieve key from option array"); + zend_error(E_ERROR, "Could not retrieve key from option array"); Also wrong. You never through an E_ERROR for this sort of thing. -sterlingoption) were demoted to E_NOTICE or promoted to E_ERROR as necessary- Those errors which are truly E_WARNING will behave as such whencalled from a procedural context. If called from an object oriented context, they will be represented as exceptions.I also looked at the bugs you reported, Nuno but I couldn't reproduce some of them. In either case, the ones i could reproduced should be fixed.