Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34950 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46106 invoked by uid 1010); 26 Jan 2008 22:31:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46091 invoked from network); 26 Jan 2008 22:31:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2008 22:31:23 -0000 Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:33866] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/B6-08850-9B4BB974 for ; Sat, 26 Jan 2008 17:31:22 -0500 Received: from 208-58-196-175.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com ([208.58.196.175]:50451 helo=[192.168.1.88]) by scottsdale.servershost.net with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JItYR-0002IP-JH; Sat, 26 Jan 2008 16:31:15 -0600 To: Lars Strojny Cc: internals Mailing List In-Reply-To: <1201382016.28545.7.camel@localhost> References: <1201367844.8418.4.camel@sams-room> <1201382016.28545.7.camel@localhost> Content-Type: text/plain Date: Sat, 26 Jan 2008 17:31:10 -0500 Message-ID: <1201386670.9945.0.camel@sams-room> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] ifsetor like expression in php6 From: sam@sambarrow.com (Sam Barrow) On Sat, 2008-01-26 at 22:13 +0100, Lars Strojny wrote: > Hi, > > Am Samstag, den 26.01.2008, 12:17 -0500 schrieb Sam Barrow: > > I don't think throwing a E_NOTICE is appropriate. The isset() construct > > doesn't throw an E_NOTICE, this shouldn't either. > > As far as I understand it is just an extension to the already present > tertiary operator and therefore the ifsetor would be > isset($_GET['foo']) ?: 'bar'. I don't understand why that sugar should > act anything different and not trigger an E_NOTICE. Yes, you're right. I misunderstood this to mean isset($foo) ? $foo : $default. I didn't realize that Sebastian was referring to the new shortcut for the ternary operator.