Re: RFC: Replacing errors with Exceptions
| From: | Kalle Sommer Nielsen | Date: | Fri, 24 Jul 2009 13:54:20 +0000 |
| Subject: | Re: RFC: Replacing errors with Exceptions | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45074@lists.php.net to get a copy of this message | ||
Please don't top post
2009/7/24 Ben Scholzen 'DASPRiD' <mail@dasprids.de>:
> To you both, this is especially, for library code like Zend Framework.
> The library cannot expect the user to have the error handle set, so it
> would have to replace the error handler before every line which it wants
> to try {} and reset it after the catch. This is not really a clean
> solution, at it can occur pretty often.
Then ZF should provide an error handler that can be called inside the
user's error handler or simply choose to not use error handlers if the
user have a custom error handler. I can't really see why the whole
language should change into using exceptions by default because of
something like this?
--
regrads,
Kalle Sommer Nielsen
kalle@php.net