Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61696 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46431 invoked from network); 24 Jul 2012 17:00:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 17:00:50 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:41032] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/A0-42538-FB4DE005 for ; Tue, 24 Jul 2012 13:00:48 -0400 Received: by vbbfs19 with SMTP id fs19so6831923vbb.29 for ; Tue, 24 Jul 2012 10:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=YoAZ8jilrKyCNFl4MlkBG0W82WW5m56av56kwMHvn/c=; b=BcQTEVh9NtUoTIVKXZGqGJv7e4t3peYjppmyjwdTBkEUWsZ+0h5YdNpKY8SQEr3IWO tFSPgauHjzFFmTVmdKbCc6/6aHn/3xmV9VZjTKAsIRd7dqHoDw0vzfpRTXGTWB2TDrjV vxCwnUcPFLy06VU5BeHoDdr1gUTyzoKcxX0zbrteGeK1wW6z3l4sySQF4/va85mtLLjL EyNvuqU0hzvQ400u4wKMnTECugQbZwHu73HfeNIDPXFYB3lTtgHjUnkue6CBLJNpVWoF hHLPo05PpEde+tDsx5QDNCogVYVxAHyjsMo6FRo716dFKE/AV/qXQ3mKVqKIZbKewE51 zQMQ== Received: by 10.220.225.194 with SMTP id it2mr16009287vcb.32.1343149245212; Tue, 24 Jul 2012 10:00:45 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.195.3 with HTTP; Tue, 24 Jul 2012 10:00:25 -0700 (PDT) In-Reply-To: <4B17D4B8-B310-4173-A0F2-C6514E7995BA@gmail.com> References: <4B17D4B8-B310-4173-A0F2-C6514E7995BA@gmail.com> Date: Wed, 25 Jul 2012 01:00:25 +0800 X-Google-Sender-Auth: xP2Zqd1wd73I_NWCl33U48ckC1Y Message-ID: To: Alexey Zakhlestin Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Supports 'finally' keyword for PHP exceptions From: laruence@php.net (Laruence) Hi: try{}finally{} implemented, https://github.com/laruence/php-src/commit/90cad0a0001ef48396146c69382a25ebe0a60474 the test scripts in that commit are examples thanks 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? > > try { > doSomethingDangerous(); > } finally { > doCleanup(); > } -- Laruence Xinchen Hui http://www.laruence.com/