Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68119 invoked from network); 2 May 2012 09:10:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2012 09:10:20 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:54375] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/64-38165-9F9F0AF4 for ; Wed, 02 May 2012 05:10:18 -0400 Received: by ghbg2 with SMTP id g2so477947ghb.29 for ; Wed, 02 May 2012 02:10:15 -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:content-transfer-encoding; bh=Ra+HchjdkyYVay8INNXfCF4kN79c8sJUKBvhGVNTnrI=; b=HFOjz6w6FnpCMuBbeCBqWCcto7gRp+opwfK4GTMvPtlwTKNQPdqzNipl8pq/NDDhAZ 3C3nr35GLP+MByAX1IOuZPAlhjT0fACk96tWjFIL7Lc26jAHL8zHXma4PtK8MfX+LtCu 77EvGDgDX5FLA9wkBSM/Glt0IkWNlhaGhAtwKkPQGb7dxxoiGIV3tMgsyMgmj8SwDUU7 y5S3g13//FsLzXc9prJA87hi0YOA8KTZvTGb/F9Vx6WEij7m4qFiICwx/7GJwHUQCkGN 67w4G0n5VohO8KviS210yTL0naNznpxPdVneEPFVBz7VSmuaafFl2YeHAxsWfycZAflO TcJw== MIME-Version: 1.0 Received: by 10.236.79.40 with SMTP id h28mr8749963yhe.50.1335949815429; Wed, 02 May 2012 02:10:15 -0700 (PDT) Received: by 10.147.32.16 with HTTP; Wed, 2 May 2012 02:10:15 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 May 2012 11:10:15 +0200 Message-ID: To: Laruence Cc: Patrick ALLAERT , Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Allow non-variable arguments to empty() and isset() From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, May 2, 2012 at 10:46 AM, Laruence wrote: > =A0 =A0so I think if you want to change empty, you should also change iss= et. 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. empty() on the other hand, tests if something is empty, and only if it is empty. The result of an expression can be empty. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org