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



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to