Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78431 invoked from network); 28 Feb 2012 14:05:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 14:05:32 -0000 Authentication-Results: pb1.pair.com header.from=dsnytkine@Ultralogistics.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dsnytkine@Ultralogistics.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain Ultralogistics.com from 64.197.110.172 cause and error) X-PHP-List-Original-Sender: dsnytkine@Ultralogistics.com X-Host-Fingerprint: 64.197.110.172 thrud.alliantinternet.com Received: from [64.197.110.172] ([64.197.110.172:58284] helo=thrud.alliantinternet.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/80-09779-B2FDC4F4 for ; Tue, 28 Feb 2012 09:05:31 -0500 Received: by thrud.alliantinternet.com (Postfix, from userid 1001) id 6D3C31742DA; Tue, 28 Feb 2012 09:05:28 -0500 (EST) To: Date: Tue, 28 Feb 2012 09:05:28 -0500 Message-ID: <01a901ccf622$0645f230$12d1d690$@alliantinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thread-Index: Acz2IgXMS2NO2v6ISjem/SRHi9RvtA== Content-Language: en-us Subject: Possibility to add finally to try/catch? From: dsnytkine@Ultralogistics.com ("Dmitri Snytkine") This is another feature that we know we can live without but those familiar with languages that have 'finally' like Java or Python know that it is very neat feature to have in some situations. Basically the code inside 'finally' is guaranteed to run even if there is a 'return' inside try or catch blocks in which case the value to be returned is remembered tempraraly, the code inside finally block executes and then remembered value is returned. Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytkine@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011"