Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3947 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91807 invoked from network); 14 Aug 2003 18:28:13 -0000 Received: from unknown (HELO prp0.prp.physik.tu-darmstadt.de) (130.83.243.130) by pb1.pair.com with SMTP; 14 Aug 2003 18:28:13 -0000 Received: from prp0.prp.physik.tu-darmstadt.de (localhost [127.0.0.1]) by prp0.prp.physik.tu-darmstadt.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h7EIS6E7025720; Thu, 14 Aug 2003 20:28:06 +0200 Received: (from swalk@localhost) by prp0.prp.physik.tu-darmstadt.de (8.12.3/8.12.3/Submit) id h7EIS657025719; Thu, 14 Aug 2003 20:28:06 +0200 Date: Thu, 14 Aug 2003 20:28:06 +0200 To: walt boring Cc: internals@lists.php.net Message-ID: <20030814182806.GA25430@prp0.prp.physik.tu-darmstadt.de> References: <1060813541.901.336.camel@ali> <200308141145.38495.ilia@prohost.org> <3F3BD1D7.70209@3gstech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F3BD1D7.70209@3gstech.com> User-Agent: Mutt/1.3.27i Subject: Re: [PHP-DEV] variable_exists() patch From: swalk@prp.physik.tu-darmstadt.de (Stefan Walk) On Thu, Aug 14, 2003 at 11:15:51AM -0700, walt boring wrote: > I for one would like to see something like variable_exists(), as I am > very annoyed with > the logic of isset() returning false if the variable exists and has a > value of null. [snip] > I for one would much rather do > if ( variable_exists($var) ) {} versus > if (isset($var) || is_null($var)) {} When do you need to do that? I can't think of many situations where it would be neccessary to check if a variable really exists. -- Regards, Stefan Walk