Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30011 invoked from network); 21 Jun 2012 06:59:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2012 06:59:54 -0000 Authentication-Results: pb1.pair.com header.from=sebastian.krebs.berlin@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@googlemail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:37659] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/C2-09612-866C2EF4 for ; Thu, 21 Jun 2012 02:59:53 -0400 Received: by eaal12 with SMTP id l12so61363eaa.29 for ; Wed, 20 Jun 2012 23:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=n7RmvbJf454oCd1wAQh1gcQ5qk14jqo+8kTmg9s+Ksk=; b=IXSk3Uet1Y+mMZ4J5FX/4j+Tn+QrY8Vza+3b4rQkzJVotKEnqlPFFY140e89ChBrf+ t28DMBb2I6X0lO76C5Qd94eDHYEJ14w0mpllTOtI0l5l6j6zKNm5cbZ4ujV4Ms1koVZu lo40txawPToF5sBZCK0mraUUIak/6At8T++mOQUGmdX6l9PkOaBKib7DMJWK85whEhEW zxKrW+HYgRs4iSIF+Y0Tb0wh7faPPJKfA7fBi1KqkGu4w2upRaHfAXixPf1do5T7PJ8W EHhKQG1n32rvepi1Q5vD9rkMnkxm/liUUG+A/b2sPdnYkuWrSySUt3KcRYJ5lRPNauv/ FXwQ== MIME-Version: 1.0 Received: by 10.14.37.206 with SMTP id y54mr826504eea.218.1340261989827; Wed, 20 Jun 2012 23:59:49 -0700 (PDT) Sender: sebastian.krebs.berlin@googlemail.com X-Google-Sender-Delegation: sebastian.krebs.berlin@googlemail.com Received: by 10.14.44.17 with HTTP; Wed, 20 Jun 2012 23:59:49 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jun 2012 08:59:49 +0200 X-Google-Sender-Auth: drBTwZtB8Zxq3wVHau7fJpNppM8 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary=bcaec517a71ccf448904c2f60fd4 Subject: Re: [PHP-DEV] Resume keyword From: krebs.seb@googlemail.com (Sebastian Krebs) --bcaec517a71ccf448904c2f60fd4 Content-Type: text/plain; charset=ISO-8859-1 2012/6/20 Michael Morris > [/snip] > > An example for additional clarity. > > set_exception_handler(function ($e) { > echo $e->getMessage(); > // Don't know if this is correct - but should be able to illustrate here > if ($e->getCode() == E_NOTICE & E_STRICT) { > resume null; > } > > echo 'Dying now'; exit; > }); > > throw new Exception('A test', E_NOTICE); > > echo "We didn't die"; > > The code above when run would echo "A test. We didn't die."; > > > Whats about $user = $this->getUser(); // Throws exception echo $user->getName(); Now the second one will fail too, but in reality it shouldn't even get executed... Regards, Sebastian > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec517a71ccf448904c2f60fd4--