Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61667 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64833 invoked from network); 24 Jul 2012 10:24:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2012 10:24:47 -0000 Authentication-Results: pb1.pair.com header.from=ww.galen@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ww.galen@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: ww.galen@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:37562] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/4E-17533-EE77E005 for ; Tue, 24 Jul 2012 06:24:47 -0400 Received: by wibhq12 with SMTP id hq12so3066262wib.5 for ; Tue, 24 Jul 2012 03:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=OQVXFhHruV6ZyedtKVtt0IdiajLS7eOqfjEojuV1bVs=; b=duSRSjS325l1adYRrWW3knQtvKH94O2IVFr1jJEogqPLVCA1Qo45dluYrTU8PJqgGf bvwPj7RhEwnvRtQDIDpy7OM3gq3FeitfcbIY+SaqIGXH5wpiVS5Lh9AJMmxe7qAhVuQJ NblVLvfj+HS/3ofH5Dx949Urp1rJagF8snu1BQSTaKQ2GoBVE545fTXpSpH08y8IqObD qIaa90FktNcsuV2TdVOafWxAINZ+0aUwKb7EyBZmS3pnXbo5RqpqSpwH4ekHEp24zsTd m5TQkS5d1UAQuxLX7ZPqpSrOGc6sZxUw4FwTrCRSwHa8NwjepdNG45NXpQc0HcWECvSQ izvg== Received: by 10.180.84.169 with SMTP id a9mr5670228wiz.8.1343125483855; Tue, 24 Jul 2012 03:24:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.17.100 with HTTP; Tue, 24 Jul 2012 03:24:03 -0700 (PDT) In-Reply-To: <309558619.20120723000801@cypressintegrated.com> References: <309558619.20120723000801@cypressintegrated.com> Date: Tue, 24 Jul 2012 03:24:03 -0700 Message-ID: To: Sanford Whiteman Cc: Yahav Gindi Bar Content-Type: multipart/alternative; boundary=f46d0418281a5a9fe904c590c5e9 Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: ww.galen@gmail.com (Galen Wright-Watson) --f46d0418281a5a9fe904c590c5e9 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jul 22, 2012 at 9:08 PM, Sanford Whiteman < swhitemanlistens-software@cypressintegrated.com> wrote: > [...] > 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? My feeling is that either more complex expressions for operators with an implicit "isset" or "!empty" shouldn't work, or that they should cause notices. It's a moot point for null-coalescing operators. Since the proposal is to deal with specific, common usage patterns, it should stay focused on those patterns unless during development it's revealed that a more general case is as easy or easier to implement. --f46d0418281a5a9fe904c590c5e9--