Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22801 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76056 invoked by uid 1010); 16 Apr 2006 23:24:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76041 invoked from network); 16 Apr 2006 23:24:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2006 23:24:10 -0000 X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:3646] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 63/43-19715-A12D2444 for ; Sun, 16 Apr 2006 19:24:10 -0400 Received: (qmail 42275 invoked by uid 98); 16 Apr 2006 23:24:12 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 ( Clear:RC:1(127.0.0.1):. Processed in 0.070549 secs); 16 Apr 2006 23:24:12 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.070549 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 16 Apr 2006 23:24:11 -0000 Received: from 209.254.223.2 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Sun, 16 Apr 2006 18:24:11 -0500 (CDT) Message-ID: <1248.209.254.223.2.1145229851.squirrel@www.l-i-e.com> In-Reply-To: References: <2e24b1e00604150752g69acab4er1058771d9e60a352@mail.gmail.com> Date: Sun, 16 Apr 2006 18:24:11 -0500 (CDT) To: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Inconsistency of empty() and isset() ? From: ceo@l-i-e.com ("Richard Lynch") 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