Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2587 invoked by uid 1010); 17 Apr 2006 00:38:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2572 invoked from network); 17 Apr 2006 00:38:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2006 00:38:45 -0000 X-Host-Fingerprint: 64.233.166.178 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.178:36466] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D7/96-19715-593E2444 for ; Sun, 16 Apr 2006 20:38:45 -0400 Received: by pproxy.gmail.com with SMTP id i49so178905pyi for ; Sun, 16 Apr 2006 17:38:42 -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=Oc+r+cTz5puS/ChHPOiVO0sBY4N7YaFfYT130fWZzFmISa0qI3O7fIhLJdxvooTJoayGclbbA2d/n8F/hK/ImomH115+Bg/SEQl9OvYL9o2IwJ/nUkhapi7UQNnQTaptGgedQ1OpuRXzYxLrRXr/VA1tzFANepJiK4GvY8FJXDE= Received: by 10.35.15.11 with SMTP id s11mr2148346pyi; Sun, 16 Apr 2006 17:38:41 -0700 (PDT) Received: by 10.35.66.2 with HTTP; Sun, 16 Apr 2006 17:38:41 -0700 (PDT) Message-ID: Date: Mon, 17 Apr 2006 02:38:41 +0200 To: "Brian Moon" Cc: "Lukas Smith" , internals@lists.php.net, "Derick Rethans" , itrebal@gmail.com In-Reply-To: <4442DAD8.1090607@dealnews.com> 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> <4442DAD8.1090607@dealnews.com> Subject: Re: [PHP-DEV] Inconsistency of empty() and isset() ? From: pierre.php@gmail.com (Pierre) On 4/17/06, Brian Moon wrote: > > Indeed, especially as everyone will tell you that isset and empty are > > equivalent. > > > Are you saying that people misunderstand that or that you believe that > to be true? I see that misunderstanding a lot. I have to educate > people on that. They don't seem to grok the subtle, yet crucial (and I > believe, wonderful) difference between the two. I was not clear :) isset and empty share the same implementation, the only difference is what they return (in short). They behave "the same", they should continue do so if empty accept many arguments. But this discussion just hence Derick's point, it is not that obvious to bring consistency between the two functions. --Pierre