Compiling PHP with MS SQL Server Driver for PHP support
am 29.04.2010 17:15:56 von Richard Quadling
Hi.
Compiling using VC9 Express Edition.
I'm ending up with a php_sqlsrv.dll of 88KB
The VC9 x86 nts version supplied by MS (php_sqlsrv_53_nts_vc9.dll) is 227KB.
If it had been just a few bytes, then OK, but to be over 40% smaller
is a significant difference.
Any ideas?
As far as I can tell, it all works just fine too!
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Compiling PHP with MS SQL Server Driver for PHPsupport
am 29.04.2010 17:59:31 von Venkat Raman Don
SGksDQoNCk15IGd1ZXNzIGlzIHRoYXQgU1FMIHRlYW0gbWF5IGJlIGxpbmtp bmcgd2l0aCBWQzkg
cmVxdWlyZWQgbGlicmFyaWVzIHN0YXRpY2FsbHkgYW5kIHlvdSBhcmUgbm90 LiBJdCB3b3JrcyBi
ZWNhdXNlIHlvdSBoYXZlIFZDOSBydW50aW1lIG9uIHlvdXIgbWFjaGluZS4N Cg0KVGhhbmtzLA0K
RG9uLg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogUmlj aGFyZCBRdWFkbGlu
ZyBbbWFpbHRvOnJxdWFkbGluZ0Bnb29nbGVtYWlsLmNvbV0gDQpTZW50OiBU aHVyc2RheSwgQXBy
aWwgMjksIDIwMTAgODoxNiBBTQ0KVG86IHBocC13aW5kb3dzDQpTdWJqZWN0 OiBbUEhQLVdJTl0g
Q29tcGlsaW5nIFBIUCB3aXRoIE1TIFNRTCBTZXJ2ZXIgRHJpdmVyIGZvciBQ SFAgc3VwcG9ydA0K
DQpIaS4NCg0KQ29tcGlsaW5nIHVzaW5n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ver for PHP support
am 30.04.2010 11:07:26 von Richard Quadling
On 29 April 2010 16:59, Venkat Raman Don wrote:
> Hi,
>
> My guess is that SQL team may be linking with VC9 required libraries statically and you are not. It works because you have VC9 runtime on your machine.
>
> Thanks,
> Don.
>
> -----Original Message-----
> From: Richard Quadling [mailto:rquadling@googlemail.com]
> Sent: Thursday, April 29, 2010 8:16 AM
> To: php-windows
> Subject: [PHP-WIN] Compiling PHP with MS SQL Server Driver for PHP support
>
> Hi.
>
> Compiling using VC9 Express Edition.
>
> I'm ending up with a php_sqlsrv.dll of 88KB
>
> The VC9 x86 nts version supplied by MS (php_sqlsrv_53_nts_vc9.dll) is 227KB.
>
> If it had been just a few bytes, then OK, but to be over 40% smaller
> is a significant difference.
>
> Any ideas?
>
> As far as I can tell, it all works just fine too!
>
> Richard.
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
Aha! Yes. Confirmed this by using Dependency Checker. Mine is
requiring MCVCR90.DLL and MS's isn't.
So, the next question is, considering all I've done to my build is
added --enable-sqlsrv=shared (as per the README.TXT in the SVN
repository) to my configure command, what is the "right" output?
configure --disable-zts --enable-win32service=shared
--enable-debug-pack --enable-wincache=shared --without-mysql
--without-mysqli --enable-sqlsrv=shared
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php