Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47849 invoked from network); 31 Aug 2016 07:58:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2016 07:58:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.163 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.163 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.163] ([81.169.146.163:20781] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/22-11399-62E86C75 for ; Wed, 31 Aug 2016 03:58:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1472630307; l=5394; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:In-Reply-To:References: MIME-Version; bh=xes2lnel/LxpbXJ5oPQhPK2i5TQpZVe4MfzC3o+Gf7w=; b=dXZPQcxdU/83ujAr6iEtPhnIAcksQm6WZ5tGONdPUJyw8FmXcwELPjxJgz1yNZ2bfwA xxFABbjdK3Y08srAARqN8pR9f0aGktesHYUoAdIASo/B2E2H2ZSJLQGHqq+lAln6juMy2 3JBRBqwJMsuGy2XDxAtiXi5MxhNXrjGwY58= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtOnE6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f52.google.com ([74.125.82.52]) by smtp.strato.de (RZmta 38.13 AUTH) with ESMTPSA id 606bcas7V7wRPW9 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Wed, 31 Aug 2016 09:58:27 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id 1so25221244wmz.1 for ; Wed, 31 Aug 2016 00:58:27 -0700 (PDT) X-Gm-Message-State: AE9vXwPqNr8V02JCFxEzfghh/DUg85QS0EI5iXMehgneAh9yCrw52rMmn1YXwMPV5/J7KcLlAb0Q45PfzYmhrw== X-Received: by 10.28.10.21 with SMTP id 21mr8684439wmk.3.1472630307396; Wed, 31 Aug 2016 00:58:27 -0700 (PDT) MIME-Version: 1.0 References: <1e6cac8a-e1af-c9e7-a900-a2efda0771dd@gmx.de> In-Reply-To: Date: Wed, 31 Aug 2016 07:58:16 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Dmitry Stogov , "Christoph M. Becker" , David Walker , PHP internals Cc: Nikita Popov Content-Type: multipart/alternative; boundary=001a11438e165baacd053b597642 Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess From: me@kelunik.com (Niklas Keller) --001a11438e165baacd053b597642 Content-Type: text/plain; charset=UTF-8 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 probably 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-adccess > > On 16.08.2016 at 17:55, David Walker wrote: > > > I raised this concept a couple weeks ago to a couple +1's. Discussion > was > > 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 > > --001a11438e165baacd053b597642--