Answered by:
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- Marked as answer by Serban Iliescu - MSFTEditor Friday, January 15, 2010 1:27 AM
Friday, January 15, 2010 1:27 AMAnswerer
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- Marked as answer by Serban Iliescu - MSFTEditor Friday, January 15, 2010 1:27 AM
Friday, January 15, 2010 1:27 AMAnswerer -
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,-JackFriday, 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....
- Edited by Phpteammate Monday, September 17, 2012 5:17 PM
Monday, September 17, 2012 5:17 PM -
PHP 7 64 bit for windows is now available, any idea on a PHP_SQLSRV.DLL 64 bit version now?Monday, December 28, 2015 7:03 PM
-
PHP 7 64 bit for windows is now available, any idea on a PHP_SQLSRV.DLL 64 bit version now?
I second this. It would really clear up some issues for us to get SQL and PHP talking in 64-bit (64-bit integers and large file support).Monday, February 8, 2016 10:10 PM