Reputation: 151036
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?
Upvotes: 2
Views: 1100
Reputation: 4097
You must have 64-bit hardware and 64-bit OS to run PHP in 64-bit. Compiling PHP from source should detect this automatically. If you're installing binaries, they must be compiled as 64-bit, which evidently aren't available from php.net but are available elsewhere on the Internet.
See this related question.
Upvotes: 1
Reputation: 39356
As long as you're on a 64 bit OS, and install 64 bit binaries, you're good to go.
e.g., my dev box is centos, and I installed php-*.x86_64 packages.
When I run:
$ php -r 'echo PHP_INT_MAX;'
I get:
9223372036854775807
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
If you're using windows, there are plenty of resources out there re: 64 bit PHP on Windows.
Upvotes: 3
Reputation: 29897
Upvotes: 3