Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61675 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76983 invoked from network); 24 Jul 2012 11:51:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 11:51:16 -0000 Authentication-Results: pb1.pair.com header.from=kassner@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kassner@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: kassner@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:51716] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/C1-17533-23C8E005 for ; Tue, 24 Jul 2012 07:51:15 -0400 Received: by yhoo21 with SMTP id o21so7452126yho.29 for ; Tue, 24 Jul 2012 04:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NcLmi/ANy3SiobkHkaKXfu3ggco+OTfrZI4vj4iLXKU=; b=mLFORO8yUyTw8AoySV4unZZG22b3hOV58yU5CWfPLQYTE4LZGtC/fLJKwYzf43t6kv JEM3oZ/izGMPFvkIvxISoG7wue7w9FOVDx67ok7j1WcjokHN05Q9Gwj2kDqSlrqxcmxR 70CC1wzoXwoNeAzwQRy2WMilP/OSsRJIJ57aNb2wllPUHDZn+MsmcW1GH/oFEs5Q/UD5 TRNd5CBaAFJ7weVD9S97k0+HboPAqafvEUj9lZt3ptd7MF2zqIQAxBgkOg9ChWdOywtX SxfyxC/qqHT5hvvQQHREt3wnQ/Yy74P3K12lgdp69EE7/MUy7IEp/BCgo+wBdS0ajgN4 /wMQ== Received: by 10.66.80.193 with SMTP id t1mr4176213pax.40.1343130671798; Tue, 24 Jul 2012 04:51:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.48.225 with HTTP; Tue, 24 Jul 2012 04:50:51 -0700 (PDT) In-Reply-To: References: <4B17D4B8-B310-4173-A0F2-C6514E7995BA@gmail.com> Date: Tue, 24 Jul 2012 08:50:51 -0300 Message-ID: To: Laruence Cc: Alexey Zakhlestin , PHP Internals Content-Type: multipart/alternative; boundary=f46d042ef511945b8404c591fa50 Subject: Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions From: kassner@gmail.com (Rafael Kassner) --f46d042ef511945b8404c591fa50 Content-Type: text/plain; charset=ISO-8859-1 Thanks Laruence. If I perform something like this: function test() { try { return 2; } catch (Exception $e) { } finally { return 3; } } What will be returned? There is no possibility to return something in finally, or finally will overwrite the return? On Tue, Jul 24, 2012 at 8:45 AM, Laruence wrote: > On Tue, Jul 24, 2012 at 7:41 PM, Alexey Zakhlestin > wrote: > > > > On 24.07.2012, at 15:20, Laruence wrote: > > > >> Hi: > >> As the previous threads disscussed, I make a implemention. > >> > >> here is the RFC: https://wiki.php.net/rfc/finally > >> > >> any suggestions? > > > > Will it work without "catch" in your implementation? > nope for now. > > but if it is needed, I can implemente it > > thanks > > > > try { > > doSomethingDangerous(); > > } finally { > > doCleanup(); > > } > > > > -- > Laruence Xinchen Hui > http://www.laruence.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Atenciosamente, Rafael Kassner --f46d042ef511945b8404c591fa50--