On Wed, Oct 17, 2012 at 1:51 PM, Clint Priest <cpri...@zerocue.com> wrote: >> > This isn't the way isset() works, isset() will return true for a >> > variable with a value of 0 >> >> Exactly my point. Your code (with != NULL) will return false while real >> isset() will return true. > > Stas, please see this execution output, your arguments about isset()/unset() > are just plain wrong: > > [...] > > 1) isset() on a NULL value will return false > 2) isset() may not be called on the result of a function call (which is what > an accessor is)
I'm not exactly sure, but I think that all Stas is trying to say is that it should be !== NULL instead of != NULL. Nikita -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php