Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81788 invoked from network); 13 Dec 2014 23:03:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2014 23:03:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:39215] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/50-14066-5A5CC845 for ; Sat, 13 Dec 2014 18:03:01 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 7055FB00087; Sat, 13 Dec 2014 18:02:58 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FHpvtS1qjOEw; Sat, 13 Dec 2014 18:02:58 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id CED19B00068; Sat, 13 Dec 2014 18:02:57 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Sat, 13 Dec 2014 23:02:55 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <04B01993-23F4-4C4F-8473-D55539E8066F@ajf.me> References: To: Leon Sorokin X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Fix incorrect ternary '?' associativity for 7.0? From: ajf@ajf.me (Andrea Faulds) Hey Leon, > On 13 Dec 2014, at 22:45, Leon Sorokin wrote: >=20 > I was wondering if 7.0 could be the version to fix the long-standing = incorrect ternary associativity bug in PHP [1]. This seems especially = worthy of reconsideration since the Null Coalesce RFC has been accepted = and merged [2] with the correct associativity [3]. >=20 > The major version change seems like the only time to get this done in = PHP. I=E2=80=99d love to see this fixed. I would be surprised if any code = relies on the current behaviour and doesn=E2=80=99t just use brackets, = since it=E2=80=99s so unintuitive. Thanks. -- Andrea Faulds http://ajf.me/