Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50271 invoked by uid 1010); 17 Apr 2006 02:29:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50254 invoked from network); 17 Apr 2006 02:29:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2006 02:29:07 -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:3972] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 08/0D-19715-37DF2444 for ; Sun, 16 Apr 2006 22:29:07 -0400 Received: (qmail 73014 invoked by uid 98); 17 Apr 2006 02:29:09 -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.065599 secs); 17 Apr 2006 02:29:09 -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.065599 secs) Received: from unknown (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 17 Apr 2006 02:29:08 -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 21:29:08 -0500 (CDT) Message-ID: <3516.209.254.223.2.1145240948.squirrel@www.l-i-e.com> In-Reply-To: References: <2e24b1e00604150752g69acab4er1058771d9e60a352@mail.gmail.com> <4442CB1E.7050508@php.net> <4442DAD8.1090607@dealnews.com> Date: Sun, 16 Apr 2006 21:29:08 -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 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