什么是设置PHP这样的整数将是64位的具体情况如何? [英] what are the specifics of setting up PHP so that integers will be 64-bit?

查看:128
本文介绍了什么是设置PHP这样的整数将是64位的具体情况如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为PHP的总体思路能够有共同的整数64位(而不是用数学包)是使用64位硬件和64位的PHP。是否有人知道具体情况如何?例如,不会对酷睿机能够支持吗?那么32位版本的操作系统像Vista或OS X中,它们可以支持它吗?

I think the general idea of PHP being able to have common integer 64-bit (as opposed to use math packages) is to use 64-bit hardware and 64-bit PHP. Does someone know the specifics? For example, won't the Core2Duo machine be able to support it? What about the 32-bit version of OS like Vista or OS X, can they support it too?

推荐答案

只要你是在一个64位操作系统,并安装64位二进制文​​件,你是好去。

As long as you're on a 64 bit OS, and install 64 bit binaries, you're good to go.

例如,我开发框是CentOS的,我安装了PHP - * x86_64的包

e.g., my dev box is centos, and I installed php-*.x86_64 packages.

当我运行:

$ php -r 'echo PHP_INT_MAX;'

我得到:

9223372036854775807

如果64位二进制文​​件不适用于您的平台,显然有您需要记住在编译只有一个配置选项:的 - 与-LIBDIR = / lib64的

If 64 bit binaries aren't available for your platform, apparently there's only one configure option you need to remember while compiling: –with-libdir=/lib64

如果您使用的是Windows,还有丰富的资源了有重:64位PHP在Windows

If you're using windows, there are plenty of resources out there re: 64 bit PHP on Windows.

这篇关于什么是设置PHP这样的整数将是64位的具体情况如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆