PHP 5.3.3 x64 (64 Bit) for Windows

Just noticed today that PHP 5.3.3 was released recently. However, there still aren’t any official 64 bit binaries for Windows available at php.net. So once again I have compiled PHP myself and here are the 64 bit binaries for Windows.
I have compiled both the thread safe and non thread safe versions together. They were compiled with Visual C++ 2008 (VC9). The thread safe version includes php5apache2_2.dll for use with Apache 2.2 and php5isapi.dll for use with IIS.
Download
CRC32: 012202E7
MD5: 0AEBDC3B4C2EA1B917ED6731C2F7B874
SHA1: 29B126355C750665D48BE54F421879908D78B063
php-5.3.3-nts-Win32-VC9-x64.zip
CRC32: 0358080C
MD5: 7E19FBE4F92512C20ECE7328FEDE040F
SHA1: 104DD1797858C8B20BD61FBA33F4311BB7D61A10
Update: I didn’t notice that the php_ldap.dll extension wasn’t compiled this time. It didn’t compile because as of PHP 5.3.3, it requires libsasl, which was missing. Anyway, I had to compile libsasl and then the php_ldap.dll which I am posting here separately.
I also took the time to compile eAccelerator for PHP 5.3.3 and also NTS version of WinCache which someone requested last time.
Additional Extensions
php_ldap.dll VC9 x64 Thread Safe
php_ldap.dll VC9 x64 Non Thread Safe
eAccelerator 0.9.6.1 VC9 x64 Thread Safe
eAccelerator 0.9.6.1 VC9 x64 Non Thread Safe
WinCache 1.1.0 VC9 x64 Non Thread Safe
Previous Post: Apache HTTP Server 2.2.16 x86 and x64 Windows Installers

Aug 6, 2010 at 10:45 AM
Hi, great to see some 64 binaries but could you give some details about the steps involved in the compilation process? The tips on http://wiki.php.net/internals/windows/stepbystepbuild are good to start with but not full-proof.
Aug 6, 2010 at 7:14 PM
That guide at wiki.php.net is pretty detailed in my opinion. I myself used it to to compile PHP. If you are trying to compile and are stuck at a particular point, then let me know and I will be glad to help you out.
Aug 10, 2010 at 1:04 PM
Does PHP 5.3.3 x64 still have the same issue with mysql that you talk about in your post for 5.3.2?
Aug 10, 2010 at 1:17 PM
Yes, it still has the same issue. I think they will never admit that its a bug and so will never fix it.
Aug 13, 2010 at 12:12 AM
Any pointers on installing the PHP x64 version under Windows Server 2008 R2? The search results are a bit disappointing (i.e. It’s not clear anyone has successfully done this before with 32 or 64-bit PHP versions). I hate being on the bleeding edge!
Several attempts have failed so far, but I’ll keep plugging away. Microsoft made a big point of PHP support in IIS7.0, but seem mum on it with the 7.5 release. I did have the 32-bit version of PHP working with older Server 2008 x32 IIS7.0, but that was years ago.
Aug 13, 2010 at 12:23 AM
Update: Solved it. After loading x64 nts version in the C:\PHP directory, found it needed the C++ redistributable (SP1) installed. Here is the link if anyone needs it.: http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en
Aug 13, 2010 at 10:23 AM
I am glad you got it working. You could have also used the thread safe version with the php5isapi.dll.
Aug 15, 2010 at 3:29 AM
Thank you very much for providing these builds!
Out of curiosity, does the LDAP module not compile correctly? Or was there another reason for excluding it?
Thanks again!
Aug 16, 2010 at 9:01 PM
I configured PHP with “–enable-snapshot-build” which is supposed to automatically enable all extensions that it can. I didn’t notice that the ldap extension wasn’t enabled this time. Anyway, it was probably not enabled due to some missing libraries. I will find out what was missing and will try to compile it again as soon as possible.
Thanks for letting me know.
Aug 18, 2010 at 3:42 PM
So relieved I have finally found a website with something that has up to date information about PHP on 64bit systems. I just want to say thanks for releasing this. I’m going to be tackling this install on IIS 7.5 / Windows 2008 R2 with updated MYSQL to follow. Any pointers to save some headaches?
I noticed the “bug” with 5.3.2 so I will make sure to address that as well.
Aug 19, 2010 at 7:31 PM
@Mike
Installation of PHP on IIS is pretty straightforward. You can either use the thread safe version of PHP with ISAPI (php5isapi.dll) or you can use the non thread safe version with FastCGI (php-cgi.exe).
You can find instructions on using the ISAPI here – http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64 . You can skip step 8 and 9 of that tutorial since you will be using 64 bit PHP.
And instructions for FastCGI are available at the official php.net site here – http://www.php.net/manual/en/install.windows.iis7.php
You shouldn’t have any headaches if you follow those instructions.
Aug 19, 2010 at 8:27 PM
@atomicknight
I have compiled the php_ldap.dll extension and have added it to the post. Thanks again for letting me know that it was missing.
Aug 20, 2010 at 12:48 AM
Can you please compile ZeroC Ice for nts x86 ? Its only compiled for the ts Version of PHP..
Many thx forup!
Aug 20, 2010 at 8:31 PM
Ok, I will try when I have some time.
Aug 22, 2010 at 11:05 AM
@sten
I have successfully compiled nts x86 version of ZeroC Ice for PHP 5.3.3. You can download it here.
Aug 22, 2010 at 11:40 AM
wow thx man your are my hero
Aug 24, 2010 at 7:27 AM
I wonder what for do you need x64 version. Do you really set memory_limit over 4GB?
Aug 25, 2010 at 8:49 AM
In my case I just wanted to use it with 64 bit Apache using the “Apache 2.0 Handler” (php5apache2_2.dll).
And I am sure others have their own reasons for wanting to use 64 bit versions of PHP.
Sep 2, 2010 at 3:38 PM
This is fantastic
Will the MSSQL driver from MS work with this.. I’m guessing not?
Sep 2, 2010 at 6:56 PM
You guessed right.
The MSSQL driver binary provided by MS is for 32 bit PHP so obviously will not work with this 64 bit release.
But you can try the included php_dblib.dll extension.
Sep 3, 2010 at 8:22 AM
Is there any chance you could compile that? The source code is available for it
Sep 3, 2010 at 12:52 PM
^ ignore that, I’ve got dblib.dll working on 32bit so will try crossing over to x64 later