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.


VC9 x64 Thread Safe

CRC32: 85024CA5

MD5: 930861267D415E2741EEDAB124C3A630

SHA1: 45BCBE856B86BF422DE1356C2765E97C3D4C3F84

VC9 x64 Non Thread Safe

CRC32: D5647FA3

MD5: 6159841043FD2D7BD2DEFCA55A5D1B72

SHA1: 035002B60A8EE536C0B9AB299F115A65FE70420A

Additional Extensions

Additional extensions can now be downloaded from here –

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:

You can follow any comments to this entry through the RSS feed. You can leave a comment, but pinging is currently not allowed.


  • 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?

  • You are all welcome. And thanks for the compliments. 😀


    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.

  • 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)

  • 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) 🙂

  • 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.



  • 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!

  • 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?

  • @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.


    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 ( 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.

  • 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.

  • 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?

    • @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.

  • Bzip2 support, at it said:
    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.

  • 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

  • @Ali

    Readline is not available for Windows.


    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.

  • 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

  • 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 “” appears to be broken.

    Could you please restore the link?

    Thank you very much!

  • @zmcjs

    I just posted PHP 5.3.9 a few minutes ago.


    Sorry, I can’t compile PHP 5.4.0RC right now. Will try after final version is released.


    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.


    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 –

  • Hey Anindya,

    I have installed XAMPP 1.7.7 , in that I have got PHP-5.3.8.
    Issue: After installation, I dint get any memcache module in php.ini.
    I have tried to add memcache extension 😉 but it dint work for me.

    Please suggest me some thing why this happening with XAMPP-1.1.7.

    Thank you

  • Is it possible to get php_java.dll ,php5servlet.dll,php5ts.dll for 64 bit as i need to run php application in tomcat on windows 7 (64 bit)

  • Isn’t apache supposed to be used with the VC6 versions of PHP? That’s what it said on the PHP website I thought.

Leave a Comment