Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61676 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79537 invoked from network); 24 Jul 2012 11:56:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 11:56:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=sebastian.krebs.berlin@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-wg0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:63487] helo=mail-wg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/A2-17533-25D8E005 for ; Tue, 24 Jul 2012 07:56:03 -0400 Received: by wgbfm10 with SMTP id fm10so3122677wgb.5 for ; Tue, 24 Jul 2012 04:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:x-google-sender-delegation:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=IuQt7IJK+2gBYY8ABiXpOmrTwy4qzhTXiSysyoxlUMk=; b=jZUGFOnd5b91oPWTsH7jz7ztXyHkKpQ5Bllka2BdSY0JJGO6PiIQZcByRe12u4VdWf ROmvFEciGp866Ou8LKRcyXcnlOtLka2yF7XZu0J5L8d8zAD6fkRtHRitHssrkGHtoCEo al5z/Kg8xcF6VUyzUfmsYbAa1mfXpn2pSDOA1YUzxjrSy645lTsX+mpZoi+dVNEQ8l/W q8ggkG6fnG9Wk7QqeyPDPeEvOWyHgkRzMbdWU+NyQBC5tI4FFwRpiAMlBkACAfO2C/sB 3tT8EU9lJnB0/JBQKtOy28FGpx8fjwPB6xlj0tSj/iz1KUpmueCiD/y1wGrTsQG0PH94 FB/A== MIME-Version: 1.0 Received: by 10.180.83.234 with SMTP id t10mr8298440wiy.0.1343130955611; Tue, 24 Jul 2012 04:55:55 -0700 (PDT) Sender: sebastian.krebs.berlin@gmail.com X-Google-Sender-Delegation: sebastian.krebs.berlin@gmail.com Received: by 10.194.15.3 with HTTP; Tue, 24 Jul 2012 04:55:55 -0700 (PDT) In-Reply-To: References: <4B17D4B8-B310-4173-A0F2-C6514E7995BA@gmail.com> Date: Tue, 24 Jul 2012 13:55:55 +0200 X-Google-Sender-Auth: cBi4r1gXx1Xf438PLxpt7llDS-A Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0442727a7eff4604c5920b83 Subject: Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions From: krebs.seb@gmail.com (Sebastian Krebs) --f46d0442727a7eff4604c5920b83 Content-Type: text/plain; charset=ISO-8859-1 Hi, What should a return value in 'finally' mean? Regards, Sebastian 2012/7/24 Rafael Kassner > 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 > --f46d0442727a7eff4604c5920b83--