Re: 1/-2*5 (bug 41401)
| From: | Derick Rethans | Date: | Fri, 18 May 2007 17:03:59 +0000 |
| Subject: | Re: 1/-2*5 (bug 41401) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29519@lists.php.net to get a copy of this message | ||
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