Re: set_exception_handler behaviour change...

From: Date: Tue, 31 Aug 2004 19:03:58 +0000
Subject: Re: set_exception_handler behaviour change...
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-12512@lists.php.net to get a copy of this message
Hello Davey, Tuesday, August 31, 2004, 8:41:45 AM, you wrote: > Dear all, > I would like to request that set_exception_handler's behaviour be > changed. IMHO it should not die after handling an exception. An exception means that the current execution block cannot be continued and incase that block is not a try block then the stack is wound up and the next block is skipped until a try block with a matching catch block is found. The 'cannot' means 'cannot' dot. If you want to continue from some exceptional behavior than what you want is some kind of error callback or interrupt. And if one of those fits then exception are the absolute wrong way. So you should redesign your software and please never use exceptions for control flow or parameter passing and never make it a standard in any way to use exceptions - they are exceptions. marcus

« previous php.internals (#12512) next »