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