Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22815 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55568 invoked by uid 1010); 17 Apr 2006 02:38:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55550 invoked from network); 17 Apr 2006 02:38:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2006 02:38:24 -0000 X-Host-Fingerprint: 66.249.82.207 xproxy.gmail.com Linux 2.4/2.6 Received: from ([66.249.82.207:63003] helo=xproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 89/BD-19715-E9FF2444 for ; Sun, 16 Apr 2006 22:38:22 -0400 Received: by xproxy.gmail.com with SMTP id t14so351467wxc for ; Sun, 16 Apr 2006 19:38:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=OFVuP+je/ayACm6PgQCrBDXXDLtaf/dmkWYqim9S/SlraLDquULU/usRvbPiXq76o+e8UBJmH77u+PgoqQt4Q0Q9roKQF+mFRZ6rR9kekUlJ7OsuY5u4/QoVh+41G3G4PQfwJliu58L9cBlsI6FIvsALr6kBnki6c736bz1PkLo= Received: by 10.70.50.19 with SMTP id x19mr4443137wxx; Sun, 16 Apr 2006 19:38:20 -0700 (PDT) Received: by 10.70.12.3 with HTTP; Sun, 16 Apr 2006 19:38:20 -0700 (PDT) Message-ID: <2e24b1e00604161938n4ecac965mfdd254c794057318@mail.gmail.com> Date: Sun, 16 Apr 2006 22:38:20 -0400 To: internals@lists.php.net In-Reply-To: <3516.209.254.223.2.1145240948.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10437_25461498.1145241500455" References: <2e24b1e00604150752g69acab4er1058771d9e60a352@mail.gmail.com> <4442CB1E.7050508@php.net> <4442DAD8.1090607@dealnews.com> <3516.209.254.223.2.1145240948.squirrel@www.l-i-e.com> Subject: Re: [PHP-DEV] Inconsistency of empty() and isset() ? From: itrebal@gmail.com ------=_Part_10437_25461498.1145241500455 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline What it comes down to, is it runs the exact same code on the variables, I just changed the method of which they were called (ie: allowed multiple.) On 4/16/06, Richard Lynch wrote: > > On Sun, April 16, 2006 7:38 pm, Pierre wrote: > > 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. > > Actually... > > Unless the docs are lying to me... > > empty() checks the contents of the value, and does something quite > different based on the value found. > > isset() just plain checks in the hash table[s] if the variable has > been assigned, and that's it. > > Plus, the meaning of empty() changed in some a way with "0" between > versions 3 and 4, and then again with respect to objects with no > properties between 4 and 5. > > isset() has never changed its meaning out from under me. :-) > > So, while the guts of the function may be the same in source, there's > got to be some kind of flag or something going on for empty() to be > checking all those values, no??? > > -- > 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 > > -- ------------------------------------ Graham Christensen www.itrebal.com www.iamgraham.net ------=_Part_10437_25461498.1145241500455--