Re: Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative

From: Date: Wed, 16 May 2007 14:20:23 +0000
Subject: Re: Re: #41401 [Opn->Bgs]: Order of Operations error on divide by negative
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-29468@lists.php.net to get a copy of this message
Hi Richard, ----- Original Message ----- From: "Richard Quadling" Sent: Wednesday, May 16, 2007 [...] > If you use variables, then this works fine ... > > php -r "$a = 1; $b = -2; $c = 5; var_dump($a/$b*$c);" > float(-2.5) Certainly. :-) The problem seems to be the parser is acting weird as far as precedence goes with 1/-2*5. Matt

« previous php.internals (#29468) next »