Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61383 invoked from network); 19 Sep 2015 08:36:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2015 08:36:17 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:32812] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/61-43089-F7E1DF55 for ; Sat, 19 Sep 2015 04:36:16 -0400 Received: (qmail 10159 invoked by uid 89); 19 Sep 2015 08:36:13 -0000 Received: by simscan 1.3.1 ppid: 10146, pid: 10155, t: 0.1719s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.160.91.166) by mail4.serversure.net with ESMTPA; 19 Sep 2015 08:36:13 -0000 To: internals@lists.php.net References: <55FB3A60.1040601@gmail.com> <55FB4270.7000204@lsces.co.uk> <55FB4969.7080600@gmail.com> <55FB5BA6.6050606@lsces.co.uk> <55FBF265.5000502@gmail.com> <55FBF7B7.4050603@lsces.co.uk> <55FC1A77.7090406@gmail.com> <55FC221A.7020108@lsces.co.uk> <55FC2588.6030809@gmail.com> <55FC2B17.3070909@lsces.co.uk> <55FC2F2F.9060403@gmail.com> <55FC33F1.3090903@lsces.co.uk> <55FC354B.5070209@gmail.com> <55FC39B2.5070005@lsces.co.uk> <55FC45C7.9010202@gmail.com> <55FC4991.1050903@lsces.co.uk> <7872E9F4-AE19-4681-B2EF-215751AE4CBE@thesba.com> <55FC5A14.8020301@gmail.com> <55FC988E.5000502@php.net> <55FC9C44.7050302@gmail.com> Message-ID: <55FD1E7C.6010702@lsces.co.uk> Date: Sat, 19 Sep 2015 09:36:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55FC9C44.7050302@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: lester@lsces.co.uk (Lester Caine) On 19/09/15 00:20, Stanislav Malyshev wrote: >> element exists will send you to hell." won't change anything. People >> > currently writing 'isset($foo['bar'])' won't change it for >> > 'array_key_exists('bar',$foo)'. Just because it is longer, less >> > readable, and you need to remember argument order (which is quite >> > counter-intuitive). > If you insist on using wrong tool for the job, despite right tool being > available right next to you, then complaining about tool being wrong and > needing to change is not the right way to go. PLEASE ... There is no debate over isset($foo['bar']) ... no problem with that at all! The problem is with isset($bar) where $bar is a simple variable perhaps expected or not as a result of using expand() but that is not the only path. I first hit this particular one becuase of notices appearing on what had been clean code. And NO switching off those notices is not the right fix, but it is the ONLY fix at the moment. So IS there another fix for is_null($bar) not throwing a notice if it has not been created in my example for the current template. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk