Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63114 invoked from network); 20 Sep 2015 16:28:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2015 16:28:31 -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.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:37818] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/E2-27297-DAEDEF55 for ; Sun, 20 Sep 2015 12:28:30 -0400 Received: by wicfx3 with SMTP id fx3so83097424wic.0 for ; Sun, 20 Sep 2015 09:28:27 -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-type :content-transfer-encoding:subject:from:date:to:message-id; bh=7nJoxZk8sdGPlQPJOpRvnD0yUZxkv+dG6cXsMkrFfgs=; b=u5HlCBfZb9a1Yet7wkHgLR7ojDlFOvJkPqTvBzzHGUCWATKHMaIgQ7/2NkFyL6yMYC ZqiVu+/VR40ZRJMG7kXZUUMOKN69UytA1fN3adO/kYAbl5n8xwwtIWPPTPc/YdJ5ZuU5 BEGraPsjFsp4stX28vDAyHc/jf1zh+9T6Uv1mgNc3NwBn7W1Iq3WsTa0zrdCLI3JNlw9 FNXtDiMZ2Lj5T56zpxXSCfDpxvKXb3mX7t1R2exHfoC7invEJUOwAak2gM8lcb75qVYR r9UMcN8Jvad9q8IEo755gLlX/D9szWJZ7Z97eJ9yNzLb0p46bT5YEX4s/ptwanFXWIIk UV9A== X-Received: by 10.180.35.163 with SMTP id i3mr8349774wij.80.1442766506950; Sun, 20 Sep 2015 09:28:26 -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 pu6sm19699926wjc.34.2015.09.20.09.28.26 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Sep 2015 09:28:26 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <55FEDA6F.4040600@lsces.co.uk> References: <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> <0CCD2508-4F6A-4C49-B833-892B8B87F6BE@gmail.com> <55FEDA6F.4040600@lsces.co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----V0BZA6CW2940401D2BMLZE8IKAHK8V" Content-Transfer-Encoding: 8bit Date: Sun, 20 Sep 2015 17:28:17 +0100 To: Lester Caine ,internals@lists.php.net Message-ID: <9D9C7DE6-721F-47F7-8641-1ECA8224AE33@gmail.com> Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) ------V0BZA6CW2940401D2BMLZE8IKAHK8V Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 On 20 September 2015 17:10:23 BST, Lester Caine wrote: >On 20/09/15 15:05, Rowan Collins wrote: >> is_null returns true in all the same situations as isset does. There >is absolutely no difference except for whether it raises a notice. > >? is_null returns true when isset returns false ... Sorry, yes, stick a ! in front of one or the other to make them identical. >This is simply a red flag to why there NEEDS to be a proper fix rather >than having to rely on switching off notices which result in other >problems being masked! Well, it was your choice to switch off the notices in the first place. I'm not sure what you thought your code was doing, but you can't really blame the language for a misunderstanding of what is_null does: it returns true in all the places where dumping a variable would say NULL. Seems pretty self-explanatory to me. >But I suppose code that is several years old does not matter ... we >just live with the bugs. Feel free to fix your bugs now you know how the language works. It's unlikely the language is going to change to fix the bug for you, though. Regards, -- Rowan Collins [IMSoP] ------V0BZA6CW2940401D2BMLZE8IKAHK8V--