没有人知道如何让64位整数的PHP?现在看来似乎不是由配置文件,而是它可能是一个编译时选择,它取决于平台?
does someone know how to have 64 bit integer on PHP? it seems like it is not by config file but rather it might be a compile time option and it depends on the platform?
推荐答案原生64位整数需要64位硬件和64位版本的PHP。
Native 64-bit integers require 64-bit hardware AND the 64-bit version of PHP.
在32位硬件:
$ php -r 'echo PHP_INT_MAX;' 2147483647在64位硬件:
$ php -r 'echo PHP_INT_MAX;' 9223372036854775807