set_exception_handler behaviour change...

From: Date: Tue, 31 Aug 2004 06:41:45 +0000
Subject: set_exception_handler behaviour change...
Groups: php.internals 
Request: Send a blank email to internals+get-12492@lists.php.net to get a copy of this message
Dear all, I would like to request that set_exception_handler's behaviour be changed. IMHO it should not die after handling an exception. I feel that most users will expect this behaviour to be synonymous (i.e. both should echo "foo"): try { throw someException; } catch (someException $e) { } echo "foo"; and: throw someExceptionThatIsCaughtBySetExceptionHandler; echo "foo"; Derick has expressed that all uncaught exceptions should cause an E_ERROR, and I agree, however I feel that set_exception_handler means that the exception is handled, just by a default function (say, a logger). There is currently a rather large (and heated) debate on pear-dev about how to not get in a mess with PHP5 error handling, and I have proposed a nice solution (IMO) which relies on the behaviour I propose. - Davey

« previous php.internals (#12492) next »