Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61638 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28398 invoked from network); 23 Jul 2012 04:08:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2012 04:08:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=swhitemanlistens-software@cypressintegrated.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=swhitemanlistens-software@cypressintegrated.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cypressintegrated.com designates 69.28.242.152 as permitted sender) X-PHP-List-Original-Sender: swhitemanlistens-software@cypressintegrated.com X-Host-Fingerprint: 69.28.242.152 rproxy1-a.cypressintegrated.com Received: from [69.28.242.152] ([69.28.242.152:1802] helo=rproxy1-a.cypressintegrated.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/55-20357-B4ECC005 for ; Mon, 23 Jul 2012 00:08:44 -0400 Received: from localhost ([192.168.87.152]) by rproxy1-a.cypressintegrated.com (Brand New Heavy v1.0) with ASMTP id HLF95240 for ; Mon, 23 Jul 2012 00:08:40 -0400 Date: Mon, 23 Jul 2012 00:08:01 -0400 Reply-To: Sanford Whiteman X-Priority: 3 (Normal) Message-ID: <309558619.20120723000801@cypressintegrated.com> To: Yahav Gindi Bar In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: swhitemanlistens-software@cypressintegrated.com (Sanford Whiteman) > I think that you can compare the situation to the short if syntax ($a > $b > ? $c : $d) Not sure I understand... that *is* the situation under discussion, no? $a > $b ? ... and $a ? ... both use the ternary operator. You do raise (maybe on purpose, not totally clear what you were getting at) the question of whether a more complex (expr1) in one of these theoretical ternarys w/implicit isset, however it is implemented, would apply the isset to _any_ variable in (expr1)? That is, if $a or $b do not exist, does $a > $b ?? ... return an error? What if both do not exist? I think the conclusion (as reached by other people) is that the operator needs to apply to each individual variable, not to a multi-step deal like the ternary where there are more cases to consider. -- S.