try/catch/FINALLY

From: Date: Wed, 06 Aug 2003 00:15:39 +0000
Subject: try/catch/FINALLY
Groups: php.internals 
Request: Send a blank email to internals+get-3747@lists.php.net to get a copy of this message
Hi all, I know there was a lot of discussion about try/catch, but I will bring it up again: What about finally ? I know someone posted that finally isn't necessary since PHP destroy all variables and releases all resources at the end of the script. But if the script is a PHP-GTK application or a standalone server aplication (like CORBA)? Finally is very useful in situations where you must be certain that some piece of code will be executed no matter what happens (a normal execution, a return statement or an exception). IMHO I think that an implementation start would be hooking the function exit at the engine.. Cristiano Duarte

« previous php.internals (#3747) next »