PHP 5.3.8 x64 (64 Bit) for Windows

Finally! Here are the 64 bit binaries of PHP 5.3.8 that many of you have been waiting for.
Sorry it took so long for me to compile and post them. I noticed that some extensions in the official PHP builds were compiled against newer versions of external libraries like libcurl, libxml2, etc. I wanted to use newer versions too and so I had to spend additional time compiling them. Compiling some of them took longer than I expected.
Anyway, here are the downloads.
Download
VC9 x64 Thread Safe
CRC32: 85024CA5
MD5: 930861267D415E2741EEDAB124C3A630
SHA1: 45BCBE856B86BF422DE1356C2765E97C3D4C3F84
VC9 x64 Non Thread Safe
php-5.3.8-nts-Win32-VC9-x64.zip
CRC32: D5647FA3
MD5: 6159841043FD2D7BD2DEFCA55A5D1B72
SHA1: 035002B60A8EE536C0B9AB299F115A65FE70420A
Additional Extensions
Additional extensions can now be downloaded from here – http://www.mediafire.com/?1azaglova55tt
Right now you can find thread safe and non thread safe versions of APC, dbase, eAccelerator, geoip, http, memcache, mongo, printer, ssh2 and win32service.
Related Posts:
Next Post: Apache HTTP Server 2.2.21 x86 and x64 Windows Installers
Previous Post: Apache HTTP Server 2.2.20 x86 and x64 Windows Installers

Sep 18, 2011 at 2:32 AM
thank you very much!
Sep 18, 2011 at 5:12 PM
Thank you so much! It’s very much appreciated!
Sep 19, 2011 at 2:42 PM
Thank you!!!
Sep 19, 2011 at 4:08 PM
YOU ARE INFINITE!!! ;D thanks!
Sep 20, 2011 at 9:43 AM
Amazing work – Cant thank you enough !!
Sep 21, 2011 at 9:09 PM
Thanks.
I have to note though that the value of PHP_INT_MAX still seems to be 2147483647, rather than um… a really big number for 64-bit ints. Is this intentional, or a bug, or did I do something wrong in my setup?
Sep 23, 2011 at 7:19 AM
this has been loooooooooooooooooooooooooooooooooooooooooooooooong waited!!!
Sep 24, 2011 at 7:34 PM
AMAZING WORK!!!!
Sep 25, 2011 at 6:56 PM
You are all welcome. And thanks for the compliments.
@Nick
It is a bug but unfortunately I cannot fix it. And it is very unlikely that the php developers will fix it since this is not an official build and there are no official 64 bit builds for Windows.
If you really need to use such large numbers, right now your only choice is to use linux.
Sep 29, 2011 at 12:40 PM
For some reason i cannot use webmail programs with your x64 builds. Imap connections are not working. With official x86 build they work. Can you investigate to this problem.
My OS: Windows 7 x64 SP1, Finnish (All latest updates)
Sep 30, 2011 at 2:52 PM
Thanks for this!
Anyway to prevent Apache from crashing when the APC extension is enabled?
Oct 8, 2011 at 2:15 AM
Why don’t you just use BCMATH for 64bit ? works great.
The main thing you need to consider is that you need 64bit UNSIGNED – otherwise you will overflow your auto_increment when you hit the signed 64bit INT.
BTW why not just add a BIGINT type and BIGINTU type? then you can tell the sql srver drivers to pull in the identity as a string and cast it (BIGINTU) or (BIGINT) ??
If you can make us an easy way to compile this using VS – i’ll be glad to give it a shot. Heck every other language has 64bit int support in 32bit.
If you check out mongodb they have 64bit support extensions (they cast it as an object) for their database.
right now i’ll use a BCMATH or GMP and tell SQLSRV/PDO::SQLSRV 3.0 driver to send bigint as string then recast it to 0 precision type.
Then you have a ginormous auto_increment – most folks that use 64bit INT’s use them for simple stuff like identity – everyone else realizes the BCMATH and GMP extensions are better.
Post up a package with easy docs and i’ll give it a shot to add a new type. I think it would be easier than trying to make INT 64bit and it’s not hard to change your code to change all casting of (integer) to (bigint)
Oct 10, 2011 at 9:01 AM
Hi,
have you found some time to compile the nts versions of the additional extensions like eaccelerator or ssh2.
i still cannot find them under the given mediafire folder.
Thanks.
/annika
Oct 14, 2011 at 3:37 PM
thanks a lot for uploading the nts versions of the additional extensions! They are running fine!
Oct 14, 2011 at 3:47 PM
mmh, after some testing eaccelerator throws “premature end of script headers” get overlap result error… when disabling ea all work fine.
Seems to be a bug in ea on x64 systems.
but thanks for your effort anyway!
Oct 24, 2011 at 3:46 PM
Thank you so much for all your hard work. I’m sure it’s very difficult to keep on having to keep things up to date.
I had one question/request, have you been able to get a 64bit version of the MS SQL driver? If not, is this something that you’d be willing to accomplish in the future?
Oct 31, 2011 at 3:41 PM
thx great release, can i req for php 5.2.11 & 5.2.17 x64 build with mssql, zend, php-eaccelerator enable ?
btw big thx again for release php 5.3.8 x64
Oct 31, 2011 at 3:59 PM
wew missing php_mssql files
Oct 31, 2011 at 11:28 PM
@Mika
Sorry for the extremely late reply. Anyway, I tried Roundcube webmail and it is working fine in my case. I also checked the imap extension (even though Roundcube doesn’t need it) and it also seems to be working fine. So, if webmail programs aren’t working for you, there must be something wrong with your setup. I did notice that my firewall automatically created a rule for php when I was testing roundcube, so maybe you should also check your firewall settings.
@Enjay
Sorry for the late reply. If you are using Windows 7 or 2008, try the new APC extensions that I have uploaded with file names ending in “win7-2008″.
@Will T
Unfortunately, a 64 bit version of the MS SQL driver isn’t available. And it’s not possible to compile a 64 bit driver from source either. The source code needs to be updated so that a 64 bit version can be compiled and from what I can see there has been no new updates to the source after December 2010 (http://sqlsrvphp.codeplex.com/SourceControl/list/changesets). Also, from this thread you can see that they have no intention of releasing a 64 bit driver until official 64 bit PHP distributions are available.
@Harry DS Alsyundawy
You can try the php_dblib.dll extension which is an alternative to the php_mssql extension.
By the way, compiling PHP can be a time consuming process and I am not willing to spend time compiling older versions of PHP.
Nov 24, 2011 at 9:52 AM
PHP_INT_SIZE is still 4, so it seems it uses 32 bit integers for calculations.
I am aware of this because of using low level functions pack/unpack for getting big-endian integers, and try to check if everything would work on 64 bit system.
Any one knows other options for reading binary data?
Well i will probably try it on 64 bit Linux.
Anyway greats thanks for binaries.
Nov 24, 2011 at 12:31 PM
Thanks for the great work
Dec 1, 2011 at 4:30 PM
Hi Anindya
Great work. Is it possible for you to avail PHP_PRINTER.DLL for Windows x64 as well?
Dec 5, 2011 at 7:43 PM
I installed PHP 5.3.8 x64 (64 Bit) for Windows in Subversion Edge 2.1 (Apache 2.2.21) and just want to say that they work together.
However I have a question:
php.exe –version
php.exe -i
do not print anything to stdout.
In contrast, the older versions (5.3.3 32 bit, or 5.2.5 64 bit do print information).
Why 5.3.8 does not print anything? May be some module has been forgotten?
Dec 6, 2011 at 10:10 PM
@jw
Both “php –version” and “php -i” are working fine for me. Unfortunately, I have no idea why they aren’t working for you. You should try entering the full path to php.exe (eg. C:\php\php.exe) and see if it works.
Dec 9, 2011 at 9:11 AM
@Sakhi
I have compiled the php_printer.dll extension and you can download both thread safe and non thread safe versions from here – http://www.mediafire.com/?1azaglova55tt.
Dec 22, 2011 at 5:01 AM
is it possible to have x64 version with readline enabled?
Thanks
Dec 26, 2011 at 6:09 AM
Bzip2 support, at http://www.php.net/manual/en/bzip2.installation.php it said:
Installation
Bzip2 support in PHP is not enabled by default. You will need to use the –with-bz2[=DIR] configuration option when compiling PHP to enable bzip2 support.
I am running a Phpmyadmin, it compained with no Bzip2 support, though I have opened extension=php_bz2.dll in php.ini.
Dec 26, 2011 at 6:43 AM
phpinfo stated:
bzip2 compression disabled (install pecl/bz2)
Dec 28, 2011 at 10:37 PM
Hi Anindya,
As always thanks for all the work you do.
I have a problem with a system I run which is giving an error message which infers that PCRE was compiled without UTF-8. I’m pretty sure this is a red herring but an easy one to prove by checking with you!
Thanks once again
Dave
Dec 29, 2011 at 9:03 PM
@Ali
Readline is not available for Windows. http://www.php.net/manual/en/intro.readline.php
@maplewang
bzip2 is working fine for me. Make sure you have set extension_dir to the directory where your extensions are located (eg. extension_dir = “C:\php\ext”).
@Dave Drury
I didn’t compile PCRE separately. It is bundled with PHP. Also, preg_match seems to be working fine in my case with UTF-8 strings and expressions.
Jan 11, 2012 at 3:05 PM
php 5.3.9 is release please modfify x64!
Jan 12, 2012 at 9:10 AM
Hi,
Thanks for all your work. Apachelounge and MySQL have Windows 64-bit versions; Only PHP does not.
I expect a 64-bit version PHP 5.3.9, and if in the process, we could have a 64-bit version of PHP 5.4.0RC, it would be happiness.
Thanks once again
Dominique
Jan 14, 2012 at 12:31 AM
First of all, thank you so much for providing these x64 binaries.
I was especially looking out for the eAccelerator extension.
Unfortunately, the link for the thread safe version “eAccelerator-0.9.6.1-5.3.8-VC9-x64.zip” appears to be broken.
Could you please restore the link?
Thank you very much!
Jan 17, 2012 at 7:13 PM
Hi, I’m newbie. How to install this version of PHP? Have I to make binary from this?
Jan 20, 2012 at 9:22 PM
@zmcjs
I just posted PHP 5.3.9 a few minutes ago. http://www.anindya.com/php-5-3-9-x64-64-bit-for-windows/
@Dominique
Sorry, I can’t compile PHP 5.4.0RC right now. Will try after final version is released.
@Eric
PHP 5.3.9 is available now so you should upgrade as soon as possible.
And it was probably due to a temporary issue with mediafire due to which you were unable to download eAccelerator.
@Michal
All you need to do is extract the zip file to a location of your choice like “C:\php” and then configure your web server. Configuration instructions for Apache are available here – http://www.php.net/manual/en/install.windows.apache2.php.
Feb 6, 2012 at 12:15 PM
Hey Anindya,
I have installed XAMPP 1.7.7 , in that I have got PHP-5.3.8.
but it dint work for me.
Issue: After installation, I dint get any memcache module in php.ini.
I have tried to add memcache extension
Please suggest me some thing why this happening with XAMPP-1.1.7.
Thank you
Feb 6, 2012 at 12:22 PM
@tareq
Where did you download the extension from? If it’s 32 bit PHP, then download the extension from here – http://downloads.php.net/pierre/.