On 20 September 2015 17:10:23 BST, Lester Caine <les...@lsces.co.uk> 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]