Re: exceptions instead of errors

From: Date: Sun, 04 May 2003 17:06:00 +0000
Subject: Re: exceptions instead of errors
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-1217@lists.php.net to get a copy of this message
At 17:30 04.05.2003, Derick Rethans wrote:
On Sat, 3 May 2003, Andi Gutmans wrote: At 02:53 AM 5/4/2003 +0200, Marcus Börger wrote:
Some help of the engine would be good: - automatically set EH_THROW mode at "try" - automatically set EH_NORMAL mode at "catch" (first outmost catch)
Huh? I think it's definitely not obvious that I'd want these to happen automatically. Actually I personally wouldn't, because I'd prefer PHP to continue the way it works and only use exceptions in user-land. I don't see a problem with auto-detecting if exceptions should be trown when somebody enters a try { } statement?
As already said this can easily be done. If thats our consensus then it's only adding some three lines in the engine. marcus

« previous php.internals (#1217) next »