Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19166 invoked from network); 29 Apr 2013 15:44:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2013 15:44:01 -0000 Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.179 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:52534] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/33-00193-0459E715 for ; Mon, 29 Apr 2013 11:44:00 -0400 Received: by mail-ob0-f179.google.com with SMTP id oi10so5529451obb.10 for ; Mon, 29 Apr 2013 08:43:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=NhTayLgNeyV8sPcLri2hTjJu+nip/RUPCdm/ghpxF10=; b=ANd6HEHqLjnNSk3JfJpbkE+/fd4qJ0PLZF+sxr9PKQo7GfAa+l02cwpcyOSZyc4/Tk 79o2vd39ihJIGA6YSlFuVZJhy6IjSw2Bn6GYPLikBgdRxkfH68CRzYMStj6QQDgqY/KL srl3TimfXxvhdO9GDr0YIMhUDUSeEhKHRTmk1/rIFFGgPu6YSm3kgBWOLyA9xrDNkGDP we2LdiuyUoBYIEWNDV2NorL9U0Gck5kDM1qgx3hTs7ysTJH4TGa2T118FUa7HEDnGKID hRddcwfbPTJJIdP7wGzN8D8+hL7Fq0A+pT3fyVBnQnb5wolB58BW7HPvaH63aGr/853E pvcQ== X-Received: by 10.60.133.82 with SMTP id pa18mr28876653oeb.30.1367250237909; Mon, 29 Apr 2013 08:43:57 -0700 (PDT) Received: from Ralphs-Mac-Pro.local (ip174-73-14-247.no.no.cox.net. [174.73.14.247]) by mx.google.com with ESMTPSA id h8sm16926341obk.10.2013.04.29.08.43.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 08:43:57 -0700 (PDT) Message-ID: <517E953B.9050403@ralphschindler.com> Date: Mon, 29 Apr 2013 10:43:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkEqqT487z1evkIReuK+pTLIRchwfpunhubEQ46I+2pwr0gsb++U78efr9xEqG96AbJM4Qc Subject: Re: [PHP-DEV] Continued try blocks From: ralph@ralphschindler.com (Ralph Schindler) > So, in this example, if, say, bar() throws a SomeException , the code > would then resume and execute baz() after the catch block. > > Just presenting the idea here, no RFC actually , I'm collecting > thoughts and notices. It seems like you want application specific flow control (caller specific) when particular exceptions are raised. This is achievable through goto, why not use that? http://3v4l.org/HsdlD getMessage() . PHP_EOL; } finally { echo 'Cleaning up' . PHP_EOL; } -ralph