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

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



Reply via email to