Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60417 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72349 invoked from network); 2 May 2012 09:36:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2012 09:36:44 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:54282] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/25-38165-A2001AF4 for ; Wed, 02 May 2012 05:36:43 -0400 Received: by pbbrp12 with SMTP id rp12so880547pbb.29 for ; Wed, 02 May 2012 02:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8yqC4dnsQAvbcLOiOvehi8Jy5vRpVYbJxdZ22NhSE+I=; b=lY0YZRXyeLfVk78frYfJMwgf1CdULNYorR+Yb4Ph4RFbawdBOru1JPHHl7ImMuTfFE O4uKZylSE+TOHR2kUfYMFLTWZDZ3hiJjINMy3gQq0jT86ApqTt2sclHWvecq9XEJFVvO MkKZwErAkFjxbWMO/qpwombSVnQr3BZk8d11xVeVVzxHwpRgiTlzTvBF8XOia3UnevQj Gbo0fX3LgmAZb8iyuNq7rmimz9GpYk5skG9xrRRYL1Qh5o7PNv66sZBw2seZW2eYQSvt 792JIlujtcjfKe5o17jq2l0r2itu3P71gDLOUggJRE+g08LJpw9NwHCLnngVEX6QtuMG 7EkA== MIME-Version: 1.0 Received: by 10.68.221.227 with SMTP id qh3mr7670340pbc.43.1335951399988; Wed, 02 May 2012 02:36:39 -0700 (PDT) Received: by 10.68.229.197 with HTTP; Wed, 2 May 2012 02:36:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 May 2012 11:36:39 +0200 Message-ID: To: Pierre Joye Cc: Laruence , Patrick ALLAERT , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=e89a8ff255aea22dfd04bf0a6cad Subject: Re: [PHP-DEV] [RFC] Allow non-variable arguments to empty() and isset() From: tyra3l@gmail.com (Ferenc Kovacs) --e89a8ff255aea22dfd04bf0a6cad Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, May 2, 2012 at 11:10 AM, Pierre Joye wrote: > hi, > > On Wed, May 2, 2012 at 10:46 AM, Laruence wrote: > > > so I think if you want to change empty, you should also change isset= . > > An expression is not set per se. isset goals, by design, from the very > 1st day, is to test the existence of a variable and a variable only. > "Returns TRUE if var exists and has value other than NULL, FALSE otherwise.= " $foo=3Dnull; var_dump(isset($foo)); //prints bool(false) > > empty() on the other hand, tests if something is empty, and only if it > is empty. The result of an expression can be empty. > > an expression can also have a value of null. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --e89a8ff255aea22dfd04bf0a6cad--