Re: variable_exists() patch

From: Date: Sun, 17 Aug 2003 16:45:08 +0000
Subject: Re: variable_exists() patch
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-4055@lists.php.net to get a copy of this message
At 18:38 17/08/2003, Cristiano Duarte wrote:
"Robert Cummings" <robert@wocmud.org> escreveu na mensagem news:1061086142.17849.12.camel@blobule.suds... On Sat, 2003-08-16 at 18:28, Robert Cummings wrote: It is true that I could set the value to -1 or some such other hack, or that I could use array_keys() and then check the values of the resulting array, but these are hacks for a perfectly valid use of the value null and in inadequate isset() function. I agree. If we can have one function to check this, it would be better than writing PHP hacks. Any language that don't enforce variable declaration, should have a well defined way to check whether a variable exists or not. And we are talking about the variable, not the value it stores. :)
Don't use nulls as values and you won't have to use hacks. null is not a value, was never meant to be a value, and won't be a value. Let's get this thread over with... Zeev

« previous php.internals (#4055) next »