php - Why is var_dump((int)(PHP_INT_MAX + 1)) a negative number? -
i pulled result here:
and interestingly, result of
var_dump((int)(php_int_max + 1))
displayed negative number (in case of specific example, displayint(-9223372036854775808)
). again, key here candidate know value displayed negative number.
is int negative because adding 1 overflow integer bits , change bit representing sign of int? what's reason?
Comments
Post a Comment