Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88384 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51061 invoked from network); 20 Sep 2015 14:07:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2015 14:07:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:36615] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/91-27297-A8DBEF55 for ; Sun, 20 Sep 2015 10:07:07 -0400 Received: by wicgb1 with SMTP id gb1so83779766wic.1 for ; Sun, 20 Sep 2015 07:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=kUQRcLGaebBYi6b+SZdzu4UrTlewgD3JMSrGlDu3IKs=; b=YxELM2S3rzFT+jfk1pmBB7lpqDQYvuuc0R7DxVn0u2U9QO1K6olIaxjY1JTOzWT5+f cwboIst8QfA5p5qE2zjCGKN0D4G9D3OVwyLgnhP+Llq0qEa0WyCWBYlVMiYExtO6SFUK dvSEl7F00H4Y6gaZMeXTpJPppVEuXB0hS7/O+2c3SyBtbcYWAiia9ZpEkt2LYv6wa2Lh Vya1YK/xwd+Dqorr5tvXuHLFMXRv+40ylti8A3X7qwt/QqaVPpfADJOJwgmFYQLeC25T Fku+S/ELh9g6vO4EDLDdlB+vO9rEODb+PmiEltk6mDQTeZkZg+Jt3QHQLBr4udV6z3wJ cJEA== X-Received: by 10.180.206.45 with SMTP id ll13mr8148736wic.6.1442758023138; Sun, 20 Sep 2015 07:07:03 -0700 (PDT) Received: from [192.168.0.6] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by smtp.gmail.com with ESMTPSA id pk7sm19195844wjb.2.2015.09.20.07.07.02 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Sep 2015 07:07:02 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <55FDEFEC.80101@lsces.co.uk> References: <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> <55FC8D53.3080904@lsces.co.uk> <93020C79-3920-4FC8-8B6B-F1D16C6C709C@gmail.com> <55FD7613.1080403@lsces.co.uk> <9B86E351-089D-4356-BC8A-F683BA31D1A8@gmail.com> <55FDD71F.6070101@lsces.co.uk> <55FDDA0E.3050003@gmail.com> <55FDEFEC.80101@lsces.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Sun, 20 Sep 2015 15:05:52 +0100 To: Lester Caine ,internals@lists.php.net Message-ID: <0CCD2508-4F6A-4C49-B833-892B8B87F6BE@gmail.com> Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) On 20 September 2015 00:29:48 BST, Lester Caine wrote: >> The notices emitted by is_null are COMPLETELY IRRELEVANT. > >? is_null returns true if the variable exists and is NULL and throws a >notice if the variable is not set WHY is that fact COMPLETELY >IRRELEVANT? is_null returns true in all the same situations as isset does. There is absolutely no difference except for whether it raises a notice. > we have to put up with the notices because there is no CLEAN >way to establish that a variable exists only that it is set. You absolutely never have to put up with those notices, because if you use !isset instead of is_null, they go away, and the program continues to work in exactly the same way. I understand that you would like a function to detect the (non-)existence of a variable, and are disappointed that isset is not that function, but that's a completely separate problem from how to avoid the notices. Again, it is not the noise which is stopping your car from flying. Regards, -- Rowan Collins [IMSoP]