Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72029 invoked from network); 2 Aug 2012 22:26:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2012 22:26:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; 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: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:50213] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/91-61111-F9EFA105 for ; Thu, 02 Aug 2012 18:26:39 -0400 Received: by ghbg2 with SMTP id g2so68676ghb.29 for ; Thu, 02 Aug 2012 15:26:36 -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=f/HT5diTgioFWHXzoqdshGjoRMsay7TeGL7RMDafxVI=; b=SShH2Eu4dLUmcdQdkWqMmS+Q5ZScshLJ2tqMTFOeR33xZVmU6yQbpbo9TvJvKZAZcw NwdOfBNSkoCiuMDMz/0rUAW+ISa7Vsbw/+Sxj6/qzI1sJmnovYnc+Gutqh6IujL1mMHH m3IHDxQO/Od/bGLlk/UMms4S9GpIyogUkacfPXDb4NJdyB0jgO4Wl5o70g+aYSFMQ6qr mc0n7WLgqC/4ymAvwNiW4Ev0Jpt5Nr2Vvm8EXZh4m+IoRjvdtZWrZy7unDsd1pwzKYoC MAjs2anI5eRbqaFQC8RmRTaya2Yf30LuNMel7Kz4miNcl792oEENBKHGX9BEGPs7utNn yPrQ== MIME-Version: 1.0 Received: by 10.50.212.70 with SMTP id ni6mr6385505igc.30.1343946395993; Thu, 02 Aug 2012 15:26:35 -0700 (PDT) Received: by 10.64.44.234 with HTTP; Thu, 2 Aug 2012 15:26:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Aug 2012 00:26:35 +0200 Message-ID: To: Andrew Faulds Cc: Stas Malyshev , Christoph Hochstrasser , "Matthew Weier O'Phinney" , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: alex.aulbach@gmail.com (Alex Aulbach) 2012/8/2 Andrew Faulds : > Hi, > > Also in JavaScript if in strict mode. Legacy non-strict mode JS doesn't cause an error though. > > JS's || operator supresses this error though, which is great for e.g. x = x || new Object(); Could be cool to make this in PHP with the 'or' operator (or not ||)... Which brings us back to the subject... -- Alex Aulbach