|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-12 14:11 UTC] edink@php.net
[2007-01-12 16:30 UTC] fmk@php.net
[2007-01-22 21:18 UTC] tschoenbachler at eoncc dot com
[2007-01-23 05:36 UTC] ivanvart at gmail dot com
[2007-06-30 18:34 UTC] jmckinzie at novonics dot com
[2008-07-23 00:01 UTC] efesar at gmail dot com
[2008-07-29 12:37 UTC] c dot pasticcio at gawab dot com
[2008-08-15 11:51 UTC] php at blazemonger dot com
[2008-09-18 13:14 UTC] spanidis at certh dot gr
[2008-10-10 08:35 UTC] dirk dot melcher at mdk-nord dot de
[2008-10-10 10:40 UTC] hamzeh dot shaar at ifpexpo dot com
[2008-12-11 19:51 UTC] parvesh_k at hotmail dot com
[2009-06-08 16:36 UTC] wrossmann at gmail dot com
[2009-07-06 11:07 UTC] nm dot patel at sahmed dot com
[2009-10-19 16:05 UTC] guoxinzz at 163 dot com
[2009-10-19 16:08 UTC] guoxinzz at 163 dot com
[2010-07-18 16:57 UTC] opc dot three at gmail dot com
[2010-12-28 13:27 UTC] shutzel at gmx dot de
[2010-12-28 13:44 UTC] pajoye@php.net
[2011-02-22 08:40 UTC] satyanarayana at egbsystems dot com
[2011-07-28 03:31 UTC] DennisThen at yahoo dot com
[2014-12-29 01:05 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: fmk
+Assigned To:
[2016-10-15 23:10 UTC] kalle@php.net
-Status: Open
+Status: Wont fix
[2016-10-15 23:10 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 17:00:02 2025 UTC |
Description: ------------ I have PHP 5.1.4 and upgraded to php 5.2.0. Copied my php.ini file over. I use IIS in Server 2003 (Standard) SP1, connecting to SQL Server 2005 (Standard). I can no longer do mssql_connects, instead I get an error. Once I did this I get an error: PHP Warning: mssql_connect(): Unable to connect to server: x.x.x.x in C:\db-test.php on line 3 This is the same thing that happens when using it via IIS (using php5isapi) or the php command line. This does work on a Windows XP SP2 machine just fine. I can reproduce this other Windows Server 2003 machines. I read from bug Id 39313, and I have tried loading the client tools, however I do not see anywhere that there is a NETBIOS or a TCP/IP type setting in SQL Server Management Studio. After looking long and deep, I found that its the version of ntwdblib.dll that is provided with php package. I found one that is version "2000.80.194.0" that fixes it, but the one included is "2000.2.8.0" Same problem appears to happen with 5.1.4 and this version of dll, I think this file needs to be updated in the distribution. Reproduce code: --------------- <?php $dbh = mssql_connect('x.x.x.x','user','password'); if($dbh) { echo "true\r\n"; } else { echo "fubar\r\n"; } ?> Expected result: ---------------- I should get "true" printed out. Actual result: -------------- Using 5.2.0: Warning: mssql_connect(): Unable to connect to server: x.x.x.x in C:\db-test.php on line 3 fubar Using 5.1.4: true