Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-23 Thread Ken Stanley
Anthony, thank you for your response. Would it not be possible that when an exception is thrown to temporarily store the filename/line number for when the exception handler kicks in, so at the very least, if someone made the mistake of throwing an exception inside of another exception, they could a

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-23 Thread Antony Dovgal
On 22.11.2007 06:12, Ken Stanley wrote: > I have > corrected my mistake so that it will use trigger_error() instead of throwing > an exception. However, in my Google searches I have noticed that there are a > lot of people having somewhat similar problems, but without an easy > solution. My feature

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-23 Thread Daniel Brown
Ken, This same issue was referred to back in 2004 on the php.net site. I just looked it up and the post can be found by [EMAIL PROTECTED] from 9 September, 2004, on this page: http://us.php.net/errorfunc On Nov 23, 2007 12:32 AM, Ken Stanley <[EMAIL PROTECTED]> wrote: > I complet

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-22 Thread Ken Stanley
I completely agree with what you and Alexy suggest. I've since refactored my code accordingly so that an exception would not be thrown while inside of an exception. But, that does not answer my original question. I asked about submitting a feature request that would simply provide more information

Re: [PHP-DEV] Quick question before submitting a feature request...

2007-11-21 Thread Alexey Zakhlestin
Well, just as there is set_exception_handler, there is set_error_handler function which probably does what you want. Another thing: what stops you from explicitly catching the exception using try/catch blocks? I believe that would solve most of your problems. set_exception_handler is really a "las