Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60408 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34967 invoked from network); 2 May 2012 01:31:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2012 01:31:22 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:63840] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/8F-38165-76E80AF4 for ; Tue, 01 May 2012 21:31:20 -0400 Received: by vbjk13 with SMTP id k13so99974vbj.29 for ; Tue, 01 May 2012 18:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=WHaB0t9dPq7q/+g/TjhPenpuRCYHHbWIUXqNFaHRvAI=; b=EoZoV+Lu/dLHjGYaB/1wesjovXL/kM3ZKjtdOtMSrS084YFHi3Q7Fu2f/ZPMDXziDL W2EOxAIn62Ob9lj41jl9xVCkvus7tQXFwpRLFkRNvRhWfHueqC5PpY1OdceUOU7BcE5n G6jjzdigPGsZwOdSl4KNSHOJa01ay6g7voXgEgZFZI8+Ae7RKTGFzCW9lTdxJUd5mfwu HhgK5E3vRuJPJo6wXwyI7Z40/GCCdEkN3x6zEIJR0PGhonNGi89/NRXtjB7pq3gGxwg6 vtocbL9BBSKQpYsUSJyPLhIyKDK3eHRfsGJ6/t8AjBQMHdTa4mdtU4Hi4j90YXFcVWhG CJGw== Received: by 10.52.91.14 with SMTP id ca14mr6830504vdb.121.1335922277595; Tue, 01 May 2012 18:31:17 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Date: Wed, 2 May 2012 09:31:10 +0800 Message-ID: <-2488038101241716373@unknownmsgid> To: Ferenc Kovacs Cc: Etienne Kneuss , Nikita Popov , Patrick ALLAERT , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Allow non-variable arguments to empty() and isset() From: laruence@gmail.com (Xinchen Hui) Sent from my iPhone =E5=9C=A8 2012-5-2=EF=BC=8C3:52=EF=BC=8CFerenc Kovacs = =E5=86=99=E9=81=93=EF=BC=9A >> >> >> 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 yo= u > 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= . > This is really a issue . Thanks > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu