Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77370 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87257 invoked from network); 20 Sep 2014 07:40:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2014 07:40:39 -0000 Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:44377] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/FB-13213-07F2D145 for ; Sat, 20 Sep 2014 03:40:35 -0400 Received: (qmail 1354 invoked by uid 1009); 20 Sep 2014 09:40:30 +0200 Received: from 209.85.216.44 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/19406. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.44):. Processed in 0.100586 secs); 20 Sep 2014 07:40:30 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.44):. Processed in 0.100586 secs Process 1346) Received: from mail-qa0-f44.google.com (gmail@bof.de@209.85.216.44) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 20 Sep 2014 09:40:30 +0200 Received: by mail-qa0-f44.google.com with SMTP id dc16so1657717qab.17 for ; Sat, 20 Sep 2014 00:40:28 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.102.83 with SMTP id v77mr6859547qge.38.1411198828177; Sat, 20 Sep 2014 00:40:28 -0700 (PDT) Received: by 10.140.86.112 with HTTP; Sat, 20 Sep 2014 00:40:27 -0700 (PDT) Received: by 10.140.86.112 with HTTP; Sat, 20 Sep 2014 00:40:27 -0700 (PDT) In-Reply-To: <63FFDE7B-4156-4BE2-9754-3F32E148C7B8@ajf.me> References: <63FFDE7B-4156-4BE2-9754-3F32E148C7B8@ajf.me> Date: Sat, 20 Sep 2014 09:40:27 +0200 Message-ID: To: Andrea Faulds Cc: internals Content-Type: multipart/alternative; boundary=001a11c171a2dc724c05037a5485 Subject: Re: [PHP-DEV] [VOTE][RFC] Null Coalesce Operator From: php@bof.de (Patrick Schaaf) --001a11c171a2dc724c05037a5485 Content-Type: text/plain; charset=UTF-8 Am 20.09.2014 01:35 schrieb "Andrea Faulds" : > > https://wiki.php.net/rfc/isset_ternary#vote Hi, got a question after being bitten my the issue yesterday in the context of the "@yadda ?: 'default'" form yesterday: What about yadda that results, at the moment, in fatal errors?? Things like static::$missingproperty, $this->missingmethod(), and other stuff? Will the ?? operator A) make these non-fatal B) silently fatal (like now when @ is used) C) loudly fatal (like when no @ is used) D) depends on what fatal it is? To me the most annoying case here, not only in relation to ?? of course, is the different behaviour of $this->missingproperty and someclass::$missingproperty, with the latter being fatal, but easily provocable by a call to unset(someclass::$missingproperty earlier in the code. best regards Patrick --001a11c171a2dc724c05037a5485--