Compile 64-bit php_sqlsrv.dll

Dec 31, 2009 at 6:46 PM

Following instructions from  README.TXT in the source code,  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.

If someone has a successful story, Please give me a post.

thanks a lot.

-Jack

Dec 31, 2009 at 6:50 PM

Forgot to mention one thing,   in config.w32 ,   remove this line

ADD_FLAG( 'CFLAGS_SQLSRV', '/WX' );  

when compiling 32-bit php_sqlsrv.dll,    /WX  flag is not necessary,  and makes some trouble.

 

 

Coordinator
Jan 14, 2010 at 10:10 PM
Edited Jan 14, 2010 at 10:13 PM

The SQL Server Driver for PHP does not currently support x64.  When x64 PHP becomes generally available, it is our intent to ship an x64 compatible driver sometime afterwards.  However, there is no timeline or schedule to provide that feature yet.

What trouble exactly are you seeing when you use the /WX flag?  Please post errors, and the details of your environment (Visual Studio version, SDK version, etc.)

Jay Kint - MSFT

 

Jan 15, 2010 at 6:37 PM
Hi Jay,
First of all, thank you very much for replying my email.
/WX (Treat Linker Warnings as Errors)
When I compile this source code in Visual Studio 2008 professional with PHP 5.3.1 on MS Windows 7 Professional (64bit)
there are some warnings, if these warnings are treated as errors, the process stops, no php_sqlsrv.dll will be created.
In whole PHP 5.3.1 source code, I did not encounter this issue with other modules (such as php_curl, php_xml ...) even there are some warnings.
remove this flag, I can create php_sqlsrv.dll . (ignore the warnings)
I tested php_sqlsrv.dll, it works as I expected.
I still hope you or someone can help me on x64-bit php_sqlsrv.dll
I got some casting errors. (some implicit casting is 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.
I will be glad to be 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
ps -- I attach you my home network chart, that's my lab.


From: icosahedron [mailto:notifications@codeplex.com]
Sent: Thursday, January 14, 2010 18:11
To: Zhang, Jack
Subject: Re: Compile 64-bit php_sqlsrv.dll [SQLSRVPHP:79464]

From: icosahedron

The SQL Server Driver for PHP does not currently support x64. When x64 PHP becomes generally available, it is our intent to ship an x64 compatible driver sometime afterwards. However, there is no timeline or schedule to provide that feature yet.

What trouble exactly are you seeing when you use the /WX flag? Please post errors, and the details of your environment (Visual Studio version, SDK version, etc.)

Jay Kint


==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================


Feb 26, 2010 at 5:47 AM

Hi Jay,

Thanks for posting this information. We are in close contact with the PHP Core developers and will align with PHP roadmap. Until then, those that absolutely need x64 versions can build the binary without the /WX flag.

Ashay Chaudhary
Program Manager, SQL Server driver for PHP

Mar 14, 2011 at 3:11 PM

Hello,

I am facing the same issue, running a website on x64 environment.

Do you have any news on a x64 delivery?

Thanks in advance for your reply,

Bertrand

Mar 14, 2011 at 5:19 PM
On 14 March 2011 15:11, devpro <notifications@codeplex.com> wrote:
> From: devpro
>
> Hello,
>
> I am facing the same issue, running a website on x64 environment.
>
> Do you have any news on a x64 delivery?
>
> Thanks in advance for your reply,
>
> Bertrand
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe or change your settings on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com

Are you running a unofficial, non-supported, home built, x64bit version of PHP?

Risky!

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
Mar 14, 2011 at 5:31 PM

I'm using official releases based on WampServer:

http://www.wampserver.com/

- Apache 2.2.17
- Php 5.3.4 (version 64 bits)
- Mysql 5.1.53 (version 64 bits)

It works fine except for this.

Bertrand

Mar 15, 2011 at 1:16 AM
On 14 March 2011 17:31, devpro <notifications@codeplex.com> wrote:
> From: devpro
>
> I'm using official releases based on WampServer:
>
> http://www.wampserver.com/
>
> - Apache 2.2.17
> - Php 5.3.4 (version 64 bits)
> - Mysql 5.1.53 (version 64 bits)
>
> It works fine except for this.
>
> Bertrand

The PHP Group hasn't released PHP for Windows for x64. So not
official. But as it is open source, any one is free to take and make.

You could try compiling things yourself.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY