Re: Code Modifications Needed for Error Handling

From: Date: Tue, 31 Aug 2004 08:25:47 +0000
Subject: Re: Code Modifications Needed for Error Handling
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33101@lists.php.net to get a copy of this message
Hi, Davey wrote:
To put it bluntly: sounds like a load of BS to me. Here is what the actual doc for set_exception_handler() [1] states:
Sets     the default exception handler if an exception is not caught within a try/catch block. Execution will stop after the exception_handler is called. 
What's the use of adding the exception to the stack if the script terminates immediately after?
How odd, I opened up my newsreader to report this exact thing. /me re-thinks There must be a solution to this problem, even if it means bugging a php-dev till they change how set_exception_handler() works ;)
I sincerely doubt that php-dev will listen to the proposal of making PHP's exceptions have different semantics to the exceptions in any other programming language.
Repeat after me: there is no compatibility mode. You either use exceptions *or* are PHP4 compatible.
we'll get it yet, ye of little faith.
Repeat after me: there is no compatibility mode. You either use exceptions *or* are PHP4 compatible. ;)

« previous php.pear.dev (#33101) next »