Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29713 invoked from network); 31 Aug 2016 06:37:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2016 06:37:32 -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 104.47.42.127 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.42.127 mail-by2nam03on0127.outbound.protection.outlook.com Received: from [104.47.42.127] ([104.47.42.127:7632] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/11-11399-82B76C75 for ; Wed, 31 Aug 2016 02:37:30 -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=j1hS8DwCKX6uRC4J6ldMQ9N+oZ5o+jmNPb0q+JlOMVQ=; b=gSFf1B9lqeImxxBUGpS0m3OMGb+C/ddNeHK5soIhth4pbbNjvx1mXdANrZsW1Ioi/2Jza82A7pkalZvhr7dTdtibdm8bPoDMvXQT8xW8VdypWO6BCqnG07Vm8m8nVBmQtdT+s5QeDiURnM2XasSPZF3KgAs/dDdPNyqbsUJtRBs= 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 (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13; Wed, 31 Aug 2016 06:37:22 +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.0587.013; Wed, 31 Aug 2016 06:37:22 +0000 To: "Christoph M. Becker" , David Walker , PHP internals CC: Nikita Popov Thread-Topic: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess Thread-Index: AQHR/sbmD9xxW9A3CEyHAOpTP2AfSKBiom/B Date: Wed, 31 Aug 2016 06:37:21 +0000 Message-ID: References: ,<1e6cac8a-e1af-c9e7-a900-a2efda0771dd@gmx.de> In-Reply-To: <1e6cac8a-e1af-c9e7-a900-a2efda0771dd@gmx.de> 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: 9d828bd2-b85a-44eb-36fa-08d3d1694352 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1784;6:vD2EtTBjUn+7qpSxzYoZI5j9VJ16ka4HvWNSB3zQDF8g6cYC/ktQkyW46whRWVwbdc21vdrksKwXG3zdqTmb8kIJTdVQOb80X55ysQFIzxnJgFGVq+Zd1uOVTOHFcX6510jXCHl55vPrSUvHJMoJ33lM8w4RsKK+BAve28X4MY/AW6mF+OgbC6+SeRVzBTMhKFmKlo3jtVP1paSC8phXnYvONriomFw/TRMlUruBTPcSDzqJ0GXkUpCzEZV97o/ADt92xlk/zgpJZCARELn1PbYHVHiV2XVy2cx7mIH5UNk=;5:781jRWJdBRuH+TA4lGpU8HC1grLhmTrqTKcMcaAzjPnh1DRgpD9K2+FbpKyepHjLssOHF/1CQpXPoaQ3lmZPVY6RPOpUHwR2BIefhwUx/JqmmlLqWnIw9Xs7Nwzou3nHnl1K9NibMkwQIn/r4LCGrA==;24:m7cshmkvRwYWnbrmh2prN1nM96HlJUdlOztQgc0cSR/PD1kSzz3vxh8gIpWdzFTIo5PXztsj/5YAc6Cfq91DKFqIgQdU/Fu9QguaZgldlTc=;7:oy6f+nvaGqBeam0tapLHb7C7VXk66K/uhVc7CHK/uAD/OsH1ZvXG9Q9d0JnGg2I4nTCTusEMwdL6QYHU6eNzA5eBymE1zcLcK02ZUNVX9WEcKyBe8MrVWnjmlwq4iql8FGXa4e/Xa6ismuxrxkha1us/ZaER2K/BpXxQc6QstLKZOIIYpQ6kiSovKt9J+pEY6AE84oQOc2kG1niY6FjygMCvk+jX1pJM2cZe2WvTfFLrrOfynfumht1tTR97f2aZ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(26323138287068)(23657631684272)(166708455590820); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:BY2PR0201MB1784;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1784; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(189002)(24454002)(377454003)(199003)(3660700001)(2906002)(8666005)(81166006)(7696003)(586003)(74316002)(7906003)(7846002)(68736007)(8936002)(9686002)(6116002)(3846002)(2900100001)(54356999)(4326007)(7736002)(101416001)(8676002)(10400500002)(81156014)(106116001)(66066001)(15975445007)(3280700002)(2950100001)(76576001)(19580395003)(19617315012)(16799955002)(92566002)(77096005)(102836003)(16236675004)(19625215002)(87936001)(19580405001)(5660300001)(99286002)(106356001)(50986999)(33656002)(76176999)(189998001)(5002640100001)(97736004)(86362001)(11100500001)(122556002)(105586002)(5001770100001)(15188155005)(556834004)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1784;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A: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_BY2PR0201MB17843B394401BED590828E3ABFE30BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2016 06:37:21.2697 (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] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB17843B394401BED590828E3ABFE30BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I vote NO, because the implementation introduces more problems than intents= to fix. For example the following code starts to throw exception: BTW, I'm not against the feature, I'm against the implementation. It's just can't be committed in current state. Thanks. Dmitry. ________________________________ From: Christoph M. Becker Sent: Thursday, August 25, 2016 2:49:51 PM To: David Walker; PHP internals Subject: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adcc= ess On 16.08.2016 at 17:55, David Walker wrote: > I raised this concept a couple weeks ago to a couple +1's. Discussion wa= s > held mostly upon the PR [1], and I went through and documented within the > RFC [2]. I'd like to go ahead and open up the RFC to voting to the scope > that it is written. > > [1] https://github.com/php/php-src/pull/2031 > [2] https://wiki.php.net/rfc/notice-for-non-valid-array-container For the record, the RFC rightly claims: | The default behavior, of a silent NULL return, is not correctly | defined in the Array Documentation however is noted in a comment I have documented this behavior now[3], and removed the note, which was not quite correct, because it claimed that TRUE would be returned when array dereferencing NULL, bool or int. [3] -- Christoph M. Becker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php --_000_BY2PR0201MB17843B394401BED590828E3ABFE30BY2PR0201MB1784_--