Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3764 invoked by uid 1010); 18 Apr 2006 00:25:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3749 invoked from network); 18 Apr 2006 00:25:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2006 00:25:52 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:8503] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 6E/31-19715-C0234444 for ; Mon, 17 Apr 2006 20:25:50 -0400 Received: (qmail 26538 invoked from network); 18 Apr 2006 00:25:44 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 18 Apr 2006 00:25:44 -0000 Message-ID: <7.0.1.0.2.20060417172443.04976408@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 17 Apr 2006 17:25:40 -0700 To: ceo@l-i-e.com,internals@lists.php.net In-Reply-To: <1248.209.254.223.2.1145229851.squirrel@www.l-i-e.com> References: <2e24b1e00604150752g69acab4er1058771d9e60a352@mail.gmail.com> <1248.209.254.223.2.1145229851.squirrel@www.l-i-e.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Inconsistency of empty() and isset() ? From: andi@zend.com (Andi Gutmans) We had a huge thread about this a while back (1-2 years) where this was discussed in great depth. The agreement was that for isset() it's very straight forward and usefull and that the semantics with empty() would be confusing and problematic, and therefore, the decision was to just support this for isset(). For the full reasoning I suggest to search the archives. Shouldn't take too long to find. Andi At 04:24 PM 4/16/2006, Richard Lynch wrote: >On Sun, April 16, 2006 4:40 pm, Derick Rethans wrote: > > On Sat, 15 Apr 2006 itrebal@gmail.com wrote: > > There is a thought about it, and that is that we could not decide > > whether it should be an AND or an OR test between the different > > parameters. > >I'm curious to know whoulda thunk it would be OR, and why?... > >I mean, the most common usage I've seen, bar far, is for form input >validation of a zillion inputs. > >I've never quite grokked why others think empty is "better" than isset >for that, and don't really want to even get into that thread (again) >here, but I am interested to know when you'd have a whole BUNCH of >args to test with empty and would want OR on a regular frequent basis. > >-- >Like Music? >http://l-i-e.com/artists.htm > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php