PHP_INT_SIZE:表示整数integer值的字长
PHP_INT_MAX:表示整数integer值的最大值
注:
输出下32位中PHP_INT_SIZE:4,PHP_INT_MAX:2147483647
输出下64位中PHP_INT_SIZE:8,PHP_INT_MAX:9223372036854775807
print "PHP_INT_MAX: " . PHP_INT_MAX . "\n";
print "PHP_INT_SIZE: " . PHP_INT_SIZE . " bytes (" . (PHP_INT_SIZE * 8) . " bits)\n";
?>
参考资料:
http://stackoverflow.com/questions/8128770/can-i-define-php-int-size-to-4-bytes-on-64-bit-system-running-php
http://www.th7.cn/Program/php/201606/879535.shtml
http://blog.zsxsoft.com/post/2