Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13423 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30822 invoked by uid 1010); 20 Oct 2004 22:41:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30777 invoked from network); 20 Oct 2004 22:41:07 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 20 Oct 2004 22:41:07 -0000 Received: (qmail 1457 invoked from network); 20 Oct 2004 22:41:05 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 20 Oct 2004 22:41:05 -0000 Message-ID: <5.1.0.14.2.20041020154028.036af970@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 20 Oct 2004 15:41:02 -0700 To: "Ron Korving" ,internals@lists.php.net In-Reply-To: <20041020111321.56801.qmail@pb1.pair.com> References: <20041020110454.29582.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset() From: andi@zend.com (Andi Gutmans) There is a big difference between isset() and empty() and it was discussed a lot in the past. You'll see both sides to the coin after reading the archives. It's really a problem make a call on this one. Andi At 01:13 PM 10/20/2004 +0200, Ron Korving wrote: >Okay, I don't wanna make remarks that may have already been made earlier, >but I think it should be "all should be empty", because it works exactly the >same for isset(), and apparently, a decision was made to give isset() that >feature. > >Ron > > >"Derick Rethans" schreef in bericht >news:Pine.LNX.4.58.0410201307210.1991@localhost... > > On Wed, 20 Oct 2004, Ron Korving wrote: > > > > > I think it would be a good idea to apply the idea of infinite parameters > > > that's been used with isset(), so one can test multiple variables: > > > > > > if (empty($var1, $var2, $var3)) echo "data missing"; > > > > We discussed this before and we didn't want to agree if it should behave > > like "each one should be empty" or "all should be empty". So we will not > > add it. > > > > Derick > > > > -- > > Derick Rethans > > http://derickrethans.nl | http://ez.no | http://xdebug.org > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php