Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4969 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9215 invoked by uid 1010); 24 Oct 2003 20:21:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9177 invoked by uid 1007); 24 Oct 2003 20:21:41 -0000 Message-ID: <20031024202141.9176.qmail@pb1.pair.com> To: internals@lists.php.net References: <20031024200902.90818.qmail@pb1.pair.com> Date: Fri, 24 Oct 2003 18:21:44 -0200 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 200.196.104.198 Subject: Re: finally again From: cunha17@uol.com.br ("Cristiano Duarte") > IMHO, I think that replicating the finally code at the end of every catch > block, before every throw/return statement and at the end of the try/catch > statement justify the need of "finally". My mistake, it's not necessary to replicate the code at the end of every catch block. And I forgot to mention that there must be one "catch all" clause(wich is impossible in PHP) with a copy of the finally code and a rethrowing exception statement otherwise an exception that is not caugh will propagate without executing the replicated code of "finally". Cristiano Duarte