Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53559 invoked from network); 14 Aug 2003 15:31:41 -0000 Received: from unknown (HELO asuka.nerv) (24.112.18.98) by pb1.pair.com with SMTP; 14 Aug 2003 15:31:41 -0000 Received: (qmail 14478 invoked from network); 14 Aug 2003 15:45:15 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 14 Aug 2003 15:45:15 -0000 Reply-To: ilia@prohost.org To: Lars Torben Wilson , internals@lists.php.net Date: Thu, 14 Aug 2003 11:45:38 -0400 User-Agent: KMail/1.5.3 References: <1060813541.901.336.camel@ali> In-Reply-To: <1060813541.901.336.camel@ali> Organization: Prohost.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200308141145.38495.ilia@prohost.org> Subject: Re: [PHP-DEV] variable_exists() patch From: ilia@prohost.org (Ilia Alshanetsky) Do we really need this function? I see 2 ways of 'implementing' this functionality in PHP without having to add another function. For example: (isset($var) || is_null($var)) or gettype($var). Ilia On August 13, 2003 06:25 pm, Lars Torben Wilson wrote: > Hi out there, > > A few weeks ago I submitted a patch in the bug db for a > variable_exists() construct, which parallels the function_exists() > one but for variables. In short, it returns TRUE if a variable > exists, regardless of its value. In other words, it's an isset() > which doesn't care if the variable's value is NULL. > > The bug report and a link to the patch is here: > > http://bugs.php.net/bug.php?id=24274&edit=1 > > Just mentioning it because I don't know whether it's good enough to > go in, but users have emailed me to ask why it hasn't been included. > If I've screwed up with the patch, a quick note as to what was wrong > would be great. > > > Thanks, > > Torben > > > -- > Torben Wilson +1.604.709.0506 > http://www.thebuttlesschaps.com http://www.inflatableeye.com > http://www.hybrid17.com http://www.themainonmain.com > -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----