Re: PHP 7.1 - Address PHPSadness #28?
| From: | Lester Caine | Date: | Sun, 20 Sep 2015 16:10:23 +0000 |
| Subject: | Re: PHP 7.1 - Address PHPSadness #28? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88386@lists.php.net to get a copy of this message | ||
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 ... but because of the
notice and switching that off to hide it I'd missed that the pigging
is_null() was broken. It's only not outputting the missing elements
because they are non-existent, not because is_null() stops the function
being called ...
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!
But I suppose code that is several years old does not matter ... we just
live with the bugs.
--
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