Re: variable_exists() patch

From: Date: Fri, 15 Aug 2003 18:12:01 +0000
Subject: Re: variable_exists() patch
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-3996@lists.php.net to get a copy of this message
<nicos@php.net> escreveu na mensagem news:20030815074124.50073.qmail@pb1.pair.com...> > You can avoid the notice by doing if(isset($var) && !is_null($var)) { } > > We can't have a function for every piece of code. > IMHO, a function to test if a variable exists or not is not "every piece of code". See what is necessary to test if a variable exists or not !!! In fact it's a workaround to a necessary variable_exists function. Cristiano Duarte

« previous php.internals (#3996) next »