Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61690 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14674 invoked from network); 24 Jul 2012 15:17:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 15:17:49 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 64.22.89.133 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 64.22.89.133 oxmail.registrar-servers.com Linux 2.6 Received: from [64.22.89.133] ([64.22.89.133:46179] helo=oxmail.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/5A-17533-C9CBE005 for ; Tue, 24 Jul 2012 11:17:49 -0400 Received: from [192.168.0.200] (5ad32874.bb.sky.com [90.211.40.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 8C1F5C300C0 for ; Tue, 24 Jul 2012 11:17:45 -0400 (EDT) Message-ID: <500EBC84.2030403@ajf.me> Date: Tue, 24 Jul 2012 16:17:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <500EBC47.2080200@lerdorf.com> In-Reply-To: <500EBC47.2080200@lerdorf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions From: ajf@ajf.me (Andrew Faulds) On 24/07/12 16:16, Rasmus Lerdorf wrote: > On 07/24/2012 06:35 AM, Nikita Popov wrote: >> On Tue, Jul 24, 2012 at 1:20 PM, Laruence wrote: >>> Hi: >>> As the previous threads disscussed, I make a implemention. >>> >>> here is the RFC: https://wiki.php.net/rfc/finally >>> >>> any suggestions? >> The finally clause comes with a very strong promise that the code in >> the clause will run in absolutely any case (short of sigkill, maybe). > No it doesn't, at least not in Java. A fatal Java error or an explicit > call to System.exit() will cause the finally clause to not be executed. > It is a simple exception-level construct and doesn't in any way promise > to be called in a fatal error situation. And regardless of what Java > does, we are free to define it and provide whatever promises we want > here, but keeping it in line with Java's implementation makes sense to me. > > -Rasmus > Yeah, finally{} won't happen in absolutely any case. But if there's an exception that's uncaught it *should* still run.