Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73103 invoked from network); 31 Aug 2016 10:05:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2016 10:05:57 -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.40.113 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.40.113 mail-co1nam03on0113.outbound.protection.outlook.com Received: from [104.47.40.113] ([104.47.40.113:8000] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/43-11399-10CA6C75 for ; Wed, 31 Aug 2016 06:05:55 -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=c+4rXLRTj/pTEwvQ10NgmWa+w3sWMf3IRGkSTirJiVc=; b=Z6eYT36nh5WH3VJRs0l3gmW/XIBtiqBA6kXQ40w2LRCAY/TEBpiVaTlr4gVtXxU0Qfg1grhgQsdDcxYN6VU2h96+d0Gx1OoeRCDgoTM3mealhUHfSzwstkQ+3CEkQ22gd5VIdrvUsqSjljqyyvUlalUrccVySDum6x1fP7Mawus= 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; Wed, 31 Aug 2016 10:05:49 +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 10:05:48 +0000 To: Niklas Keller , "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/BgAAa3wCAACE8lA== Date: Wed, 31 Aug 2016 10:05:48 +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: 4f05f9f8-e810-4aa5-2f98-08d3d18661fb x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1781;6:aSlyzrDqVcCtMXNGKW4nwPIV5Nq1suS4ak0lTc71XbBKyIbCLda69Ll9iPmiCZ3rJSiuFBfOCadqv1QtJ22N91+KLrQsFbsD9qut70su41Md0dfWnzEMqsDAM0b0RhfuO1R/59CPWfV0YuYk9PKLeHGRjdE7Em8ue9LjlPtIRCXiaRaU6q7XsyYsX+1AyopHBFeLM7ck6L5+WJ4mhtZLMYM8RIgruRb0cYxfyv0ntqqdJcXB6kW9iMhO4V1YwwU6u9+bHp8XqxMHf6ZMMZs/9/os8/JBBY1wR5N39h9/5bg=;5:za5WYQP9I+qySkK28K/gvN9wEVnYfj3NUrhHVAkbaZLYGkkEBCtIyyiTsJ/bnEkr3IYb1/drpeFZH8Ch7T/I6euupb5IefAQchQ+WTTAvnwS5Byo1oQHbPYyVQE77UxFTzntUSjG5GFy9EUBU+fjgw==;24:KGC8oJ3j3X/E12DeF69wHdqlviB3bW31PFItCDATwp2L9GQW95LyuXU0pJhbdU43BKIokkJIJ66vD3fxFohdrlgplttoa4U1ryt+p+itVtA=;7:oVkaEhIWsp8uENYPAP5ySC0YP8C3nZ7Qz+F+LRwJ3rWdTZDRrQ0QlN8f21UNCr5M4rbFDh5dOqs2GUiZEmWsoseSRLxPR/zGNiMP4Un2AKbNNjV5q0NkAo8hdl9Sfy5kAGc60woJiN2427Vv4gHWCogo9G3Roul6xH25W3v5RBMSSM3NfVfradbkcywwTP6ObZHcdtFAOqRq7ylSs3mWCGKuC04P0jG28h49JlepBAyJYPErRFQ+KZDSeJ/SJFNK x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(26323138287068)(23657631684272)(166708455590820); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BY2PR0201MB1781;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1781; x-forefront-prvs: 00514A2FE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(189002)(24454002)(199003)(377454003)(66066001)(8936002)(4326007)(16236675004)(7906003)(7736002)(68736007)(8666005)(97736004)(16297215004)(16799955002)(7846002)(92566002)(15188155005)(122556002)(8676002)(99286002)(106356001)(76576001)(81166006)(106116001)(81156014)(105586002)(86362001)(93886004)(33656002)(76176999)(15975445007)(19625215002)(50986999)(54356999)(3660700001)(5002640100001)(102836003)(3280700002)(19617315012)(19627405001)(101416001)(2950100001)(87936001)(5660300001)(586003)(10400500002)(74316002)(2906002)(19580395003)(77096005)(7696003)(19580405001)(3846002)(5001770100001)(2900100001)(6116002)(189998001)(9686002)(7059030)(556834004);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1781;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_BY2PR0201MB1784DB754435DFDDC5B0200CBFE30BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2016 10:05:48.6334 (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_BY2PR0201MB1784DB754435DFDDC5B0200CBFE30BY2PR0201MB1784_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable RFC proposes to emit warning, but the provided code throws unrelated "Unsup= ported operand types" exception. I see, that after few weeks of work, the implementation (just few lines of = C code) is still hackish and incomplete. This makes me think that, the feature can't be cleanly implemented, and I v= ote against it. Thanks. Dmitry. ________________________________ From: Niklas Keller Sent: Wednesday, August 31, 2016 10:58:16 AM To: Dmitry Stogov; Christoph M. Becker; David Walker; PHP internals Cc: Nikita Popov Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-= adccess Dmitry Stogov > schrieb am Mi., 31.= Aug. 2016, 08:37: I vote NO, because the implementation introduces more problems than intents= to fix. For example the following code starts to throw exception: Array access on null should always throw IMO. BTW, I'm not against the feature, I'm against the implementation. It's just can't be committed in current state. I think we vote on features, not implementations. Therefore you should prob= ably have voted yes. 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_BY2PR0201MB1784DB754435DFDDC5B0200CBFE30BY2PR0201MB1784_--