Re: try/catch/FINALLY
| From: | Cristiano Duarte | Date: | Wed, 06 Aug 2003 00:25:52 +0000 |
| Subject: | Re: try/catch/FINALLY | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3748@lists.php.net to get a copy of this message | ||
Please, ignore this:
> IMHO I think that an implementation start would be hooking the function
exit
> at the engine..
And read this instead:
IMHO I think that an implementation start would be hooking the exit of the
try statement even if its normal or has an exception thrown...
Best regards,
Cristiano Duarte
"Cristiano Duarte" <cunha17@uol.com.br> escreveu na mensagem
news:20030806001540.7978.qmail@pb1.pair.com...
> 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
>
>