Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52918 invoked from network); 31 May 2017 16:22:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2017 16:22:07 -0000 Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:34063] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/BE-43873-BADEE295 for ; Wed, 31 May 2017 12:22:06 -0400 Received: from rh.thelounge.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3wdG2c0Yd4zXNF for ; Wed, 31 May 2017 18:22:00 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <8460930f-91fe-be43-aa71-052e96dd95e5@rhsoft.net> Date: Wed, 31 May 2017 18:21:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][Post-Discussion]: E_WARNING when using array-index on non valid container From: lists@rhsoft.net ("lists@rhsoft.net") Am 31.05.2017 um 18:16 schrieb Dan Ackroyd: > On 11 January 2017 at 15:42, David Walker wrote: >> Joe had requested renewed discussion on the accepted RFC[1] and my proposed >> PR[2] be brought forward again for implementation discussion, and to come >> up with a resolution. >> >> Any >> thoughts on a better implementation, or other use cases that need attention >> would be appreciated. > > Please could you give us an update on the status of the > implementation, and are you still looking for advice on how what would > be needed to complete it? > > ps for the record, I just spent an hour today trying to figure out why > code equivalent to > > $foo = null; > echo $foo['bar'] > > wasn't triggering an error, so I hope this can make it for 7.2 because otherwise you couldn't do something like below with a 1-liner and so that PHP5.4 feature becomes pretty useless because for a isset() you need to store it in a var function GetKatMaxSort(): int { global $db; return (int)$db->fetch_row($db->query('select max(hsort) from ' . sql_prefix . 'haupt', 1, 0))[0]; }