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, display int(-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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -