Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3044 invoked from network); 1 Sep 2016 07:03:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2016 07:03:49 -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 104.47.37.96 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.37.96 mail-cys01nam02on0096.outbound.protection.outlook.com Received: from [104.47.37.96] ([104.47.37.96:64384] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/A0-05536-2D2D7C75 for ; Thu, 01 Sep 2016 03:03:48 -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=VD+q7kOK1vK1pxOsf0pqOfg+bcwvu8hc/7tV3cZy9VQ=; b=WRtNTtkLW5jhwmVXeGZ0ZTnV+uaf3qt43H7HBGyNVxER7vDU+Add5ObP2dD+IC5ytVXpiaaiBiZTZ0Nzuj5/P0P1IurNSJOD3rOyx2j7zMc90opeQeIi+qQ+0/q7EkYAdSqehzi5ritQyC9iHkxuc50MwQnHlueLFmNWu6QZsNs= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1781.namprd02.prod.outlook.com (10.163.72.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13; Thu, 1 Sep 2016 07:03:42 +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; Thu, 1 Sep 2016 07:03:42 +0000 To: David Walker , "Christoph M. Becker" , Marco Pivetta CC: PHP Internals List , Nikita Popov Thread-Topic: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess Thread-Index: AQHR/sbmD9xxW9A3CEyHAOpTP2AfSKBiom/BgAANfoCAADEn/YAACJCAgAA1bQCAAACBgIAArAoAgABzN8Y= Date: Thu, 1 Sep 2016 07:03:42 +0000 Message-ID: References: <1e6cac8a-e1af-c9e7-a900-a2efda0771dd@gmx.de> , 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: b382a5b3-ab6f-469e-e29b-08d3d2361be2 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1781;6:3+p6KOpc5CbAMUMOpav2Qo32g9mKGZUTNbwIbQfI1R8deNt7Y3l7NmTElaAPzrhUs1zzIR7jKH6zCsuhUFmBXWZTWp//7uWXCTep2q+4xwb2Ak4zjtf0y4EcVeaK6DMYjlljtJL16Kz4LXE8gMRza+Qv5QJP1IN37CU4LcydJFeOwvL98f+RWeceAd1KzCQ/RD2nih47RfPHOR0NifB3Q6M78omoKrllScZsyZin3fwBzQmowv4tGOeqT/3cR5w2Xw6cWioJAPz988Ex/CMuX/AAGnuR9TjO3mrDPEX9Uy0=;5:kNc12dSUpXRo236GILh6ROEzv3wEq+NKa3E8rCKMjIkZaRlxe51KOhoKmKD+gMyMsHoCufwBuKDGERMrJjTTTiaMLfpVB4Ech3NX3UHWnmllPNW4A9iSGIT8WawyN8UL7rCAmXT5q8Fq7wU9kWRvxg==;24:hQKXIHVFAgdvxqChpXeHqpAAgCAvWHCLp3SAyjBFQuBgyJAWRmcFpGLG7ww55RfnRqkAVvfTbho4QOtY9kFjtAMTi6HSlguiBOM4HpSqwrQ=;7:PKwQJnFbSmPkVefrdCo0BqiDTLb2kwcbNyfIkcylwjlVbjUlTcURX0mQydInT2W+xUPNGzSdORKhhy3rUcK/k0Fe5pfZ18EozM1PpNGn+7BJgbftzG8XqQcF22BIuEkzrFl3qslbd4VqwCLCBUPj1bgivxEMsZ/H+6EEFt+1i1/vfskUp7asTlV8RmZMLC7FlRj514nvVXGMXRZ6iLYWXoHVB7NL/eJl9ojn1e8W3SC+a/QvgjdutJuvZtEWHuOv x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(26323138287068); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR0201MB1781;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-forefront-prvs: 0052308DC6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(199003)(189002)(24454002)(377454003)(53754006)(7736002)(74316002)(9686002)(4326007)(8936002)(16236675004)(68736007)(97736004)(8666005)(7846002)(92566002)(122556002)(8676002)(99286002)(106356001)(81166006)(106116001)(66066001)(11100500001)(81156014)(105586002)(76576001)(86362001)(93886004)(87936001)(76176999)(19625215002)(50986999)(54356999)(3660700001)(3280700002)(5002640100001)(102836003)(33656002)(2950100001)(101416001)(5660300001)(19627405001)(10400500002)(586003)(2906002)(19580395003)(7696003)(19580405001)(5001770100001)(2900100001)(3846002)(189998001)(77096005)(6116002)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1781;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_BY2PR0201MB17840119CEB9BC06307ED2CEBFE20BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2016 07:03:42.4790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1781 Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB17840119CEB9BC06307ED2CEBFE20BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi David, I would propose to cancel voting and restart it when the good implementatio= n is found. Otherwise, people may rise their hands for something that can't be implemen= ted in good enough way. Thanks. Dmitry. ________________________________ From: David Walker Sent: Thursday, September 1, 2016 3:05:44 AM To: Christoph M. Becker; Dmitry Stogov; Marco Pivetta Cc: PHP Internals List; Nikita Popov Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-= adccess On Wed, Aug 31, 2016 at 7:49 AM David Walker > wrote: On Wed, Aug 31, 2016 at 7:48 AM David Walker > wrote: I too get Dmitry's result. As the left hand side is an error-zval, and the= right hand is null, it explodes. Yes, the hackish way I try and resolve t= hings was to check opcodes around the current one, which I should have thou= ght in the case of addition wouldn't have been valid. The entire goal of t= he RFC was to prevent warning for obvious results (as it specifies on long = string of accesses). One, thought about and ignored by me, aspect to the R= FC was the concept of a null entity. Wherein any array access on null woul= d result with null. I believe this could result in resolving many of the h= eadaches I'm attempting to resolve by managing a null-return from array acc= ess as a literal null, or unknown cast to null. On Wed, Aug 31, 2016 at 4:36 AM Christoph M. Becker > wrote: On 31.08.2016 at 12:10, Dmitry Stogov wrote: > no. if you would try the proposed PR with this code, you would see: > > > Fatal error: Uncaught Error: Unsupported operand types I get the following behavior against PR #1269: $ sapi/cli/php -n -d error_reporting=3D-1 -r "\$a =3D [null]; \$c =3D null; var_dump(\$a[0][0] + \$c[0]);" Notice: Trying to get index of a non-array in Command line code on line 1 Notice: Trying to get index of a non-array in Command line code on line 1 int(0) Cheers! > ________________________________ > From: Marco Pivetta > > Sent: Wednesday, August 31, 2016 10:10:23 AM > To: Dmitry Stogov > Cc: Christoph M. Becker; PHP Internals List; Nikita Popov; David Walker > Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container rea= d-adccess > > > Hi Dmitry, > > On 31 Aug 2016 8:37 a.m., "Dmitry Stogov" >> wrote: >> >> I vote NO, because the implementation introduces more problems than inte= nts to fix. >> >> For example the following code starts to throw exception: >> >> >> > > Isn't that the point of this RFC? > I would expect this code to only ever work by accident. > Apologies in advance for the toppost. Gmail is the bane of my existence in= regards to mailing lists. Hi all, As of now, the scheduled time the vote is to close, the RFC stands 19-4 (ac= cepted). Given this is my first solo RFC, I'm not really sure protocol to = go from here. Dmitry does raise that the implementation I put forward mayb= e a bit hackish compared to what someone much more knowledgeable could impl= ement. So I'm not certain if the RFC should be deemed accepted, or, fall i= nto the howto section 7(3) and go back to discussion (if it is considered a= serious issue). Direction appreciated. -- Dave --_000_BY2PR0201MB17840119CEB9BC06307ED2CEBFE20BY2PR0201MB1784_--