Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3996 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99125 invoked by uid 1007); 15 Aug 2003 18:11:58 -0000 Message-ID: <20030815181158.99124.qmail@pb1.pair.com> To: internals@lists.php.net References: <1060813541.901.336.camel@ali> <200308141145.38495.ilia@prohost.org> <3F3BD1D7.70209@3gstech.com> <20030814182806.GA25430@prp0.prp.physik.tu-darmstadt.de> <3F3BDC4A.20603@3gstech.com> <20030815074124.50073.qmail@pb1.pair.com> Date: Fri, 15 Aug 2003 15:12:01 -0300 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 200.196.104.198 Subject: Re: [PHP-DEV] variable_exists() patch From: cunha17@uol.com.br ("Cristiano Duarte") 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