unread
Hello,
are we off one here?
$ php-dev -r 'var_dump(-2147483648);'
float(-2147483648)
$ php-dev -r 'var_dump(-2147483647 -1);'
int(-2147483648)
- Timm
unread
Timm Friebe wrote:
Hello,
are we off one here?$ php-dev -r 'var_dump(-2147483648);'
float(-2147483648)$ php-dev -r 'var_dump(-2147483647 -1);'
int(-2147483648)
No, this is caused by the way the parser works.
The unary minus is parsed separately from the number. I've reported this
to Andi a while ago.
--
Ard