Re: Property Accessors v1.2

From: Date: Wed, 17 Oct 2012 12:11:34 +0000
Subject: Re: Property Accessors v1.2
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-63503@lists.php.net to get a copy of this message
On Wed, Oct 17, 2012 at 1:51 PM, Clint Priest <cpriest@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

« previous php.internals (#63503) next »