Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84991 invoked by uid 1010); 18 May 2007 17:04:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84975 invoked from network); 18 May 2007 17:04:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2007 17:04:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 82.94.239.5 cause and error) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Received: from [82.94.239.5] ([82.94.239.5:46124] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/B0-08281-88CDD464 for ; Fri, 18 May 2007 13:04:10 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id l4IH4109012650; Fri, 18 May 2007 19:04:02 +0200 Date: Fri, 18 May 2007 12:03:59 -0500 (CDT) X-X-Sender: derick@kossu.ez.no To: Rasmus Lerdorf cc: Stanislav Malyshev , "'PHP Internals'" In-Reply-To: <464D9B86.90404@lerdorf.com> Message-ID: References: <464D07F4.4040509@zend.com> <464D9B86.90404@lerdorf.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] 1/-2*5 (bug 41401) From: derick@php.net (Derick Rethans) On Fri, 18 May 2007, Rasmus Lerdorf wrote: > Stanislav Malyshev wrote: > > Looks like we have a precedence bug in the parser rules there. > > Fortunately it's quite easy to fix, for example writing the rules as: > > > > | '+' expr %prec T_INC > > | '-' expr %prec T_INC > > > > seems to work. Any reason not to? > > I think this should go in. It is an obvious mistake in the parser as > far as I am concerned. However, it's probably possible that this will break some stuff for people, so I don't think we should do it in PHP 4.4. regards, Derick