Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34890 invoked from network); 14 Aug 2003 19:33:39 -0000 Received: from unknown (HELO blobule.suds) (66.11.170.154) by pb1.pair.com with SMTP; 14 Aug 2003 19:33:39 -0000 Received: by blobule.suds (Postfix, from userid 501) id 63A152F708; Thu, 14 Aug 2003 15:33:35 -0400 (EDT) To: ilia@prohost.org Cc: walt boring , Timm Friebe , internals@lists.php.net In-Reply-To: <200308141530.20653.ilia@prohost.org> References: <1060813541.901.336.camel@ali> <1060886610.50229.9.camel@localhost> <3F3BDEEE.4000106@3gstech.com> <200308141530.20653.ilia@prohost.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 14 Aug 2003 15:33:35 -0400 Message-ID: <1060889615.29961.11.camel@blobule.suds> Mime-Version: 1.0 Subject: Re: [PHP-DEV] Re: variable_exists() patch From: robert@wocmud.org (Robert Cummings) Actually isset() doesn't behave as it should: $foo = null; echo isset( $foo ); In the above it should return true, but doesn't because it considers null to be not set. Thus it is flawed since I explicitly set it to null. Understandably this is documented; however, the issue here is whether a variable_exists() function should be added -- for which I am +1 for adding it :) Cheers, Rob. On Thu, 2003-08-14 at 15:30, Ilia Alshanetsky wrote: > On August 14, 2003 03:11 pm, walt boring wrote: > > exactly why isset() is either > > 1) a bad name for the function or > > 2) 'broken' > > Wrong. isset() has a very proper name "is-set", which to me and other people > says that it will see if a variable is set (has a value). It does this job > admirably and it certainly not broken. Documentation specifies how this > function will perform perfectly. > > Ilia > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------'