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?
views:
103answers:
4
+3
A:
- A 32bit OS can't support 64bit software.
- Core2Duo is 64bit (and can also run in 32bit mode)
- There is a PHPx64 Project for windows x64, but I.m not sure if it will give you 64bit integers.
Bob Fanger
2009-05-15 19:25:52
what is the official 64-bit version of PHP? php.net doesn't seem to have it.
動靜能量
2009-05-15 19:28:06
Jian: there isn't an official 64 bit windows build. Compile your own, or use PHPx64.
Frank Farmer
2009-05-15 19:43:09
+2
A:
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.
Frank Farmer
2009-05-15 19:42:31
+1
A:
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.
scotts
2009-05-16 05:49:46