Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22509 invoked from network); 16 Jun 2016 06:44:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2016 06:44:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 207.46.100.104 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 207.46.100.104 mail-by2on0104.outbound.protection.outlook.com Received: from [207.46.100.104] ([207.46.100.104:10546] helo=na01-by2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/17-10183-4BA42675 for ; Thu, 16 Jun 2016 02:44:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cZO7fBLOocsU8XB1MDJ/ngv8a/oTNIrmKH6IybKWpHM=; b=qoblN5k0niw6XOFTHYEGtdpRLITaTU5kuT8lt6mI1lWxJQpzsu+dcCVQoFm3SXMzPmMnZeabgzh8QT6M/jw+rknVld6b7Kqd/wjcUnhKitny32XHZAvg6D1dx/YFn0n+UHEdfR2icTaA3LPFALBAZwXCjzC6GrlXYlGwUQ+gC0I= Received: from CY1PR0201MB1786.namprd02.prod.outlook.com (10.163.55.19) by CY1PR0201MB1787.namprd02.prod.outlook.com (10.163.55.20) with Microsoft SMTP Server (TLS) id 15.1.517.8; Thu, 16 Jun 2016 06:44:01 +0000 Received: from CY1PR0201MB1786.namprd02.prod.outlook.com ([10.163.55.19]) by CY1PR0201MB1786.namprd02.prod.outlook.com ([10.163.55.19]) with mapi id 15.01.0517.014; Thu, 16 Jun 2016 06:44:00 +0000 To: PHP internals Thread-Topic: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition Thread-Index: AQHRw1M9yKVP3Kv5KUGQ4D8qa0qTMJ/rqlhk Date: Thu, 16 Jun 2016 06:44:00 +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: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: df24ed0d-a4f9-4d72-3c01-08d395b199ae x-microsoft-exchange-diagnostics: 1;CY1PR0201MB1787;6:qw3+MjvkRewo+oFc63nfSteaLnAN5OLIJ/ZA/AvmUcbVfJ5lIMq4TOWbkVDx9T6enJSex/M8D4rR6RFL1o5VcV5YiM7uuRPpwZZQL2nXofePI3sevC1LR4OozVNm1uT3N/viQt6EaT8pL4dUdTcJPnTLqxuey0tb39Xkg584HMtxowh9BBNQ7y2+8tr7eUKQ/8MPFXk0UevxejdeBXqA9xvk/FhIHyRwb6nrrsAJaoKMEo4e0aXsO83vYIDFBklzG8ncadK4wWCYKb5oWbW76Q==;5:EJA1WSDu9LdrKndlw5aI6dCdIve+l9L2+5v5LrpM5cFWZLgKsI1wwaKsaxdlhl2vvTqVChhC7ThiW3iRSVjFiMYJbJelFChZ7h8MadC8G6SjVNJbPYc6Bj4pDr9dNXiFwkDCAgsS0mcQjvMtidVe8g==;24:6TiDBkAfhW8Rhm9eHOIxweHat6cbtO4SwHFo8vfxgnSx2HiqSldXYp2r9shA3NSM8Ursy+2jyAIq5nNoAce4qYGEi4CnpJmXfaKqI+zJWig=;7:IHfvdsETn2Y9EjHukKjAgBUmcx3eseUjbsHDpSCbd3G5LJURDmTE9RvrxTA6Pff2/KFG3urEIphDI7PKJwDfSeT8K80Hi9EgwrzpIGOm0fhJfzFxF3x5WlN2w8Qu358OUMHWAsFjwXrGj+h80PcmYxM1NRWSeSUcN5oQEEyJWQU1QuKe/u105xUlnApMUYKvcjIli2s5U1DPJQ39Ytm90g== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB1787; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(278428928389397); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:CY1PR0201MB1787;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0201MB1787; x-forefront-prvs: 09752BC779 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(377454003)(189002)(199003)(2900100001)(101416001)(2950100001)(99286002)(19627405001)(450100001)(6116002)(10400500002)(2906002)(3280700002)(8936002)(81166006)(5004730100002)(16799955002)(7906002)(15975445007)(8676002)(5008740100001)(77096005)(97736004)(87936001)(33656002)(81156014)(102836003)(68736007)(19625215002)(5003600100002)(74316001)(3846002)(50986999)(106356001)(76176999)(106116001)(54356999)(19617315012)(76576001)(86362001)(122556002)(3660700001)(105586002)(189998001)(586003)(107886002)(92566002)(110136002)(16236675004)(9686002)(19580395003)(66066001)(5002640100001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0201MB1787;H:CY1PR0201MB1786.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;CAT:NONE;LANG:en;CAT:NONE; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_CY1PR0201MB178629AEE18933116BF90782BF560CY1PR0201MB1786_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2016 06:44:00.7652 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB1787 Subject: Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition From: dmitry@zend.com (Dmitry Stogov) --_000_CY1PR0201MB178629AEE18933116BF90782BF560CY1PR0201MB1786_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The voting dates was changed to Jun 24 (to satisfy 2 weeks discussion perio= d). In my opinion the BC break is minimal. Actually, the "wrong" behavior was reported by https://bugs.php.net/bug.php= ?id=3D71127 Before this, opcache worked "improperly" for few years (at least since php-= 5.4). Unfortunately, we fixed https://bugs.php.net/bug.php?id=3D71127 too later a= nd weren't able to fix PHP-7.0 "properly". Now I propose a safer and more consistent way of handling attempts of const= ants redefinition. RFC also proposes a way to "fix" affected applications, wrapping constant d= efinitions, that may be redefined, with try/catch. Thanks. Dmitry. ________________________________ From: Dmitry Stogov Sent: Friday, June 10, 2016 11:06:55 PM To: PHP internals Subject: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinitio= n Hi internals, Please review: https://wiki.php.net/rfc/constant_redefinition Thanks. Dmitry. --_000_CY1PR0201MB178629AEE18933116BF90782BF560CY1PR0201MB1786_--