Re: [VOTE] Allowing use of exceptions in the engine

From: Date: Sun, 08 Dec 2013 13:14:13 +0000
Subject: Re: [VOTE] Allowing use of exceptions in the engine
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-70531@lists.php.net to get a copy of this message
On Sun, Dec 8, 2013 at 12:55 PM, Andrea Faulds <ajf@ajf.me> wrote: > > > On 08/12/13 12:51, Jakub Zelenka wrote: > >> >> I think that the problem could be code like this: >> >> try { >> // do same stuff >> } catch (Exception $e) {} >> delete_something_important(); >> >> > Code which is that naïve probably doesn't run safely anyway, I doubt we > should worry about it. > > That's, of course, a simplified example! You can have code much more complex with similar result. The point was that you would be able to catch a fatal error and then do some nasty stuff after that... :)

« previous php.internals (#70531) next »