Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73685 invoked from network); 20 Jun 2016 20:42:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2016 20:42:51 -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 65.55.169.132 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 65.55.169.132 mail-bl2on0132.outbound.protection.outlook.com Received: from [65.55.169.132] ([65.55.169.132:47437] helo=na01-bl2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/29-16093-84558675 for ; Mon, 20 Jun 2016 16:42:49 -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=7FR7MRSqolnZnZoCVq0PvlplAr7M2Yfv5kD5zv+Nl2o=; b=Z9axrgfLefjGGI/mncRITDrCZfi6+2dnzV9GCEBpBfXpAwkxfHlPCxqzskkRFOoAVEXGCHL+q6lAWw7rXszlg/DLQn2vh2l8aUO/un4jLxPOD1aDzrgWt8FPBhr9G4C6ciOQVsCSczMLaPh+gHBku4UqA8fTvOx4m3aDXw2L+BU= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) with Microsoft SMTP Server (TLS) id 15.1.523.12; Mon, 20 Jun 2016 20:42:43 +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.0523.015; Mon, 20 Jun 2016 20:42:43 +0000 To: Pierre Joye CC: PHP internals , Stas Malyshev Thread-Topic: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition Thread-Index: AQHRw1M9yKVP3Kv5KUGQ4D8qa0qTMJ/sXluAgADY8EGAAAXWgIAFos67 Date: Mon, 20 Jun 2016 20:42:43 +0000 Message-ID: References: <2765db1c-4fc4-acf5-eccc-156a266b0750@gmail.com> , 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: 100318b4-57dd-4efa-3aa3-08d3994b6e13 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1784;6:3r2AtREs8eYhXycdCg97/ZPA+6QtUWorbumJ0s3EmVEll8Vg88+kuj1Qc1dgnt2vBbA45MalYn6Rgwzeff0VMNvvPjjJuPNJHOOD0X2xl17Axz7MlEgbkLc8p8lXEJxSfIi0L53GZ0tP8UkbXQfq0xkgwL98KZGAMqfK0T6VAzo3IhSc20IJpa/emLfW7BQOo2WOOV3e1xLnOPuCjwEV6c6eVvuBtGHXqdvvljmEHSHZyWRI4B1jv/X05eHlJ7W9IEcrQ5GyhkgSVc9RaSyWiD81uB9cw1fytKlbRfE0hUw=;5:HmVSSX+Dsrtkvfo//vyMw4fOlqyEW2RpZfxefrsZnX5BVA+oHzVP35pEndTq2KQu9gautqkcqV4PbiVWc51J22mi8GzA6efzE4Gglg8M7wgdeIh4hw9b5UIvs+hlGaktNpQeofKSpdp4axkq/e3fCg==;24:EMCPJ3p/JGH7CUCKqTru18woeNFHHtsZBg/t8dvX5QTZv4C/e1exYDXZdOMDiGV2YlaUhQdXva/5fHjZ4isrzF4vlqzZbXs04xdjk/AfwKg=;7:fTK/DcxX3PRKgtyjt9alFq3rlfz6gS9wBY8e68j0DRLBqHTvtTnILP+6krI3jtacEpj1Gv8LstFTAfDOzBEYJcLtPCKrwGQggDfrBwR5reAzhwyGizy866Zg7GaQEPTw4bDKZVp+d5/4HzBaFqlyLr39TOQNRIWyTUeveWkjLXDBJpmDSAyx8yoYPav03HsfwYp6pPUiikiiNnORj5WBpxVECwOimN05E2rffN9M1m4iOBo0DpsIb2AAsYJSKzqJ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; 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:BY2PR0201MB1784;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-forefront-prvs: 09796A1B83 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(199003)(189002)(377454003)(24454002)(101416001)(19627405001)(87936001)(5002640100001)(122556002)(2950100001)(16236675004)(19617315012)(19625215002)(106356001)(8936002)(19580405001)(19580395003)(106116001)(76176999)(74316001)(54356999)(2900100001)(5003600100003)(7736002)(10400500002)(105586002)(50986999)(76576001)(86362001)(81166006)(66066001)(6116002)(8676002)(77096005)(92566002)(15975445007)(9686002)(33656002)(81156014)(3660700001)(4326007)(102836003)(3846002)(3280700002)(68736007)(2906002)(7846002)(7906002)(97736004)(586003)(16799955002)(11100500001)(99286002)(189998001)(110136002)(93886004)(7696003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1784;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; 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_BY2PR0201MB1784185BC605C5DBA24F2E28BF2A0BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2016 20:42:43.5270 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1784 Subject: Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB1784185BC605C5DBA24F2E28BF2A0BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The RFC was updated to propose this change only for PHP 8.0, and thereby, v= ote is delayed for uncertain time. I think, changing "Notice: Constant %s already defined" into "Deprecated: .= .." in 7.1 doesn't make a lot of sense. Thanks. Dmitry. ________________________________ From: Pierre Joye Sent: Friday, June 17, 2016 9:31:33 AM To: Dmitry Stogov Cc: PHP internals; Stas Malyshev Subject: Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefin= ition On Jun 17, 2016 1:10 PM, "Dmitry Stogov" > wrote: > > Got it :( > Then this may be a serious BC break, and it's better to depricate it in 7= .1 and throw exception only in 8. Fully agree. Thanks :) > Thanks. Dmitry. > > > > On Thu, Jun 16, 2016 at 8:14 PM +0300, "Stanislav Malyshev" >> wrote: > > Hi! > > > Please review: https://wiki.php.net/rfc/constant_redefinition > > I would propose to not throw an error if constant is redefined to > exactly the same value. Some of the code might be doing this > unknowingly, e.g. by writing include instead of include_once, and > there's no real reason to break it. > > -- > Stas Malyshev > smalyshev@gmail.com --_000_BY2PR0201MB1784185BC605C5DBA24F2E28BF2A0BY2PR0201MB1784_--