Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66962 invoked from network); 23 May 2016 11:25:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2016 11:25:20 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 207.46.100.127 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 207.46.100.127 mail-by2on0127.outbound.protection.outlook.com Received: from [207.46.100.127] ([207.46.100.127:35392] helo=na01-by2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/C6-14293-E98E2475 for ; Mon, 23 May 2016 07:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=j6z/rRe2xz8hnYZ/R1gIU/UfcZMMLQ5XL6UR5JdHWfM=; b=0hL1IBd1vHB1KQ0NZJmRIT/ClRQIeYiokMLGxbwXNWJncyejIWA+j+WmoUAbIjbWlMQfdPlPxIZdmWOZx6NUt/1yftit4oVlSykJkCTrF6Pvg4EImKJnI6wkoQ8sOer3DJVu/74uIQHTXNm4Rq1gNi/8MAFNwVfCnsSz/bo5bcI= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by SN1PR02MB1712.namprd02.prod.outlook.com (10.162.129.30) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 23 May 2016 11:25:15 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0501.012; Mon, 23 May 2016 11:25:14 +0000 To: Nikita Popov CC: Xinchen Hui , internals Thread-Topic: "finally" handling refactoring (Bug #72213) Thread-Index: AQHRsooB/asZC+6F5UyFZdE4B+ax2p/B2ROAgASM9cA= Date: Mon, 23 May 2016 11:25:14 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: c47ef90b-ad3b-455d-df5f-08d382fce974 x-microsoft-exchange-diagnostics: 1;SN1PR02MB1712;5:Ss0ezHo/3JdA4A6oWVBoo7koNrbknLT8Z6HGZT9eShs0T2ltaoc22Flp3Rv6dYqy2VCPTCM8/Iv0ypAmBjJp9OfJB0EWQaKCIIFsUySCDgasnySTI/sXNaRZ6eHYEXqL/bBZozt9CDXzvCz4I57MKw==;24:Zk0y/LTIvDeRNoZMnGLh/f2t7bnUDYTfH9I+KzTBNPqR4IWTjAP8A9iYQSiVB1p4gX56m8I9FV+eeZKqjXLbdzzKVqI6NQDnv280kptJyFQ=;7:lFWXSqFFyTCzevdwmCOjHS1XvBpz6c1Mp0r1ewuiN2ia3w6Z5CXAEhjn9x83i9O8TDNu9jvyG9+XhTqxmFMJJ3stADNDbWTmLvpkBfc20UOtDUzG/8ycA2oe7dConbsFTITi3xaMXWNw2tmJq63XZvMFiwHigX13uf3D3NH3HgjmTLQbiE1bUR874pbbFR5l x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR02MB1712; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:SN1PR02MB1712;BCL:0;PCL:0;RULEID:;SRVR:SN1PR02MB1712; x-forefront-prvs: 0951AB0A30 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(377454003)(24454002)(9686002)(87936001)(92566002)(19625215002)(4326007)(19580395003)(5003600100002)(106116001)(5004730100002)(15975445007)(110136002)(122556002)(19617315012)(8676002)(33656002)(3660700001)(76576001)(189998001)(19580405001)(2906002)(5008740100001)(77096005)(10400500002)(8936002)(3280700002)(99286002)(5002640100001)(19627405001)(6116002)(16236675004)(66066001)(575784001)(1220700001)(86362001)(54356999)(2950100001)(74316001)(2900100001)(76176999)(81166006)(3846002)(50986999)(102836003)(586003);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR02MB1712;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BY2PR0201MB1784A01C040C1332E4B3D7E8BF4E0BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2016 11:25:14.4491 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1712 Subject: Re: "finally" handling refactoring (Bug #72213) From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB1784A01C040C1332E4B3D7E8BF4E0BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks for review. Both problems should be fixed now https://gist.github.com/dstogov/0a809891c= 6a3ac3fac4bd0d9711dd330 Do you see any other problems or a better way to fix this? Thanks. Dmitry. ________________________________ From: Nikita Popov Sent: Friday, May 20, 2016 4:54:07 PM To: Dmitry Stogov Cc: Xinchen Hui; internals Subject: Re: "finally" handling refactoring (Bug #72213) On Fri, May 20, 2016 at 2:07 PM, Dmitry Stogov > wrote: hi, Please review the path https://gist.github.com/dstogov/0a809891c6a3ac3fac4b= d0d9711dd330 I hope, it should completely fix https://bugs.php.net/bug.php?id=3D72213 I'm going to commit this on Monday. Thanks. Dmitry. From a quick look: https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330#file-bug72= 213-diff-L74 =3D> should this be orig_try_catch_offset? https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330#file-bug72= 213-diff-L303 =3D> This assumes that either there's a catch block or a fina= lly block to go to. However, if we're in the catch block of a try/catch (wi= thout finally) that may not be true. Also, this still leaks one exception :(