Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22803 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78694 invoked by uid 1010); 16 Apr 2006 23:26:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78679 invoked from network); 16 Apr 2006 23:26:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2006 23:26:53 -0000 X-Host-Fingerprint: 64.233.166.178 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.178:13911] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 51/B3-19715-CB2D2444 for ; Sun, 16 Apr 2006 19:26:53 -0400 Received: by pproxy.gmail.com with SMTP id i49so169770pyi for ; Sun, 16 Apr 2006 16:26:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fnTBQ+NWPJJrSFU6kGjEzsQIoLJ6HojRN4WXUmiQM6XuLcKQXTOi86l4uZW+GhvQECholxByElreTgEzLieVmsczciV+DMZvdQ4wzMhWVygMM62NC0a9ZpgxtMy95htyKQ6bqRLCsK9iGU8zlOfAcpOq6jRvcSQvutBUKqfYKDM= Received: by 10.35.88.17 with SMTP id q17mr1071643pyl; Sun, 16 Apr 2006 16:26:49 -0700 (PDT) Received: by 10.35.66.2 with HTTP; Sun, 16 Apr 2006 16:26:49 -0700 (PDT) Message-ID: Date: Mon, 17 Apr 2006 01:26:49 +0200 To: "Lukas Smith" Cc: internals@lists.php.net, "Derick Rethans" , itrebal@gmail.com In-Reply-To: <4442CB1E.7050508@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2e24b1e00604150752g69acab4er1058771d9e60a352@mail.gmail.com> <4442CB1E.7050508@php.net> Subject: Re: [PHP-DEV] Inconsistency of empty() and isset() ? From: pierre.php@gmail.com (Pierre) On 4/17/06, Lukas Smith wrote: > Derick Rethans wrote: > > On Sat, 15 Apr 2006 itrebal@gmail.com wrote: > > > >> The following is a direct excerpt from the PHP manual on empty, and is= set: > >> bool *empty* ( mixed var ) > >> bool *isset* ( mixed var [, mixed var [, ...]] ) > >> Is there a reason empty does not allow multiple variables at a time, a= s > >> isset? Was there thought behind it, or is it just an inconsistency? > > > > 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. > > well it seems to be AND for isset() .. which is probably its closest > "sibiling" .. so the obvious call when going for consistency would be to > AND in empty() as well .. Indeed, especially as everyone will tell you that isset and empty are equivalent. --Pierre