none
Compile 64-bit SQL Server Driver for PHP - php_sqlsrv.dll

    Question

  • Follow the instructions from  README.TXT of the source code, (http://sqlsrvphp.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=31762)
    I can compile 32-bit php_sqlsrv.dll in Visual Studio 2008 easily. But got some errors when I try to create x64 php_sqlsrv.dll.
    I can compile x64 PHP 5.3.1 from source code with php_curl, php_zip etc .  without any problem.
    when compiling 32-bit php_sqlsrv.dll, in config.w32 ,  need to  remove this line
    ADD_FLAG( 'CFLAGS_SQLSRV', '/WX' );  
    /WX  flag is not necessary,  makes some trouble.
    My machine configuration:
    MS Windows 7 64-bit
    MS Visual Studio 2008 Professional

    If someone has a successful story in x64, Please give me a post.
    thanks a lot.
     

    Tuesday, January 12, 2010 9:37 PM

Answers

  • The current version of the driver does not support x64. We intend to focus on preparing a 64-bit version of the driver as soon as a compatible (x64) PHP distribution becomes available (as binary or msi). At this time, we have no timeline or schedule for releasing a 64-bit driver.

     

    Thank you,

    Serban


    Serban Iliescu - MSFT
    Friday, January 15, 2010 1:27 AM
    Answerer

All replies

  • The current version of the driver does not support x64. We intend to focus on preparing a 64-bit version of the driver as soon as a compatible (x64) PHP distribution becomes available (as binary or msi). At this time, we have no timeline or schedule for releasing a 64-bit driver.

     

    Thank you,

    Serban


    Serban Iliescu - MSFT
    Friday, January 15, 2010 1:27 AM
    Answerer
  • I still hope someone can help me on x64-bit  php_sqlsrv source code.
     
    I got some casting errors. (some implicit casting is just fine under 32bit compiling process ,  but raised errors for 64bit programming.)
     
    If someone are familiar with the source code,  it will not be a big issue for him to change these implicit casting into explicit casting in stmt.cpp )
     
    I will be glad to become the first tester of 64-bit php_sqlsrv.dll,   (I already compiled PHP 5.3.1 x64 bit with a lot common modules on my laptop)
     
    thanks a lot again, 
     
    -Jack
    Friday, January 15, 2010 7:49 PM
  • 1 Year Later....

     

    Youhou ???!!! Anybody there ????

    Where is the x64 driver ? no ? Not yet ?

     

     

    Monday, April 18, 2011 2:27 PM
  • Wanou,

     

    Unfortunately, PHP still does not officially support 64-bit distributions. We will re-evaluate the support for a 64-bit PHP Driver for SQL Server if this changes.

     

    Thank you,

     

    Jonathan Guerin


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, April 18, 2011 10:18 PM
  • Hi,

    2 years after it's maybe time to launch your sqlsrv Driver.

    You can release a beta version without support....

    Thursday, March 15, 2012 12:09 PM
  • Hi,

    2 years after it's maybe time to launch your sqlsrv Driver.

    You can release a beta version without support....

    I would be nice to see it coming or at least the source to compile it on 64 bit platform. It is preventing some people from adopting it in 64 bit platforms. I don't mind if does not include any optimizations on running over 64 bit!

    • Edited by Phpteammate Monday, September 17, 2012 5:17 PM
    Monday, September 17, 2012 5:17 PM