Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60405 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15568 invoked from network); 1 May 2012 19:51:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2012 19:51:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; 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:55978] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/FC-38165-EDE30AF4 for ; Tue, 01 May 2012 15:51:58 -0400 Received: by pbbrp12 with SMTP id rp12so3724426pbb.29 for ; Tue, 01 May 2012 12:51:55 -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=iy6DiQBkku5bn8xl8OSyyQRBX8wisdaSaNJ8Kd3mRRM=; b=ajGR+e/p2/lSGzSUtTvuRtORi5LeHm9qEZPLSIA1Vw1tVEkjpI9hX/+yC+MXSXdrEe LvooSyNRWmmVcCZAS2RNl2/kMovNhmOfGNtjoOvXotFZXQOSxSZui2OP9wiBJQhaocKq uWzffyKgrS8Yxv6rmzNGf9J4QcE50n5JFTJ/nTH2IW8cuOJja9HQwL4/QbbhAoU8/ARw 5gnTNpIxI7rcWbaIw98D4+n0C0HJnxsKAAvjIlLCG3kzXlqZGg5Rtf2JgwQ1mbdPVoBS NHcCbjbZHTB6a2cf9YjjfE3EMCqF1ACSGukb8SIQQ/K7d/2G8Bfu7GrGdD/N0D2i0LQ7 hEUw== MIME-Version: 1.0 Received: by 10.68.223.227 with SMTP id qx3mr35394473pbc.1.1335901915319; Tue, 01 May 2012 12:51:55 -0700 (PDT) Received: by 10.68.229.197 with HTTP; Tue, 1 May 2012 12:51:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 May 2012 21:51:55 +0200 Message-ID: To: Etienne Kneuss Cc: Nikita Popov , Patrick ALLAERT , PHP internals Content-Type: multipart/alternative; boundary=047d7b1631051e0c7904befee7c5 Subject: Re: [PHP-DEV] [RFC] Allow non-variable arguments to empty() and isset() From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b1631051e0c7904befee7c5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > > So isset(UNDEFINEDCONSTANT) will be isset("UNDEFINEDCONSTANT") which > will/should > 1) yield a notice, which is unnexpected for isset > 2) return true, which is also unexpected. > > I don't see much point in that. > > yep, and if we allow expressions then it is the expected behavior, but you are right that this is will change the current standard that isset/empty can't raise a notice. but this isn't specific to isset, empty will also follow the same pattern. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7b1631051e0c7904befee7c5--