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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to