From: pradeep at value-one dot com
Operating system: Windows 2003
PHP version: 5.2.4
PHP Bug Type: MSSQL related
Bug description: Consistent Connection Failed to MSSQL 2000 server
Description:
------------
I had PHP 5.1.5 with MSSQL 2000 on IIS 6 in Windows 2003 installed and
runnning major PHP production application. Everything was working fine
except I had updated my running Windows 2003 server with Service Pack 2.
After that, I am getting Consistent Connection to MSSQL faileure by PHP.
One momemnt folowing PHP script shows 'Could Not Connect To MSSQL' and the
very nect moment it got Connected. I am not able to understand this wired
behaviour of PHP. I think it is due to BUG in PHP.
<?php
$mssqlHost = "localhost"; #notice the port
$mssqlUser = 'sa';
$mssqlPass = 'password';
$mssqlDB = 'exdb';
$s = mssql_connect($mssqlHost,$mssqlUser,$mssqlPass) or die('Could not
connect to SQL Server on '.$mssqlHost.' '.'Using '.$mssqlUser.' '.'with
password '.$mssqlPass.' '.mssql_get_last_message());
echo $s;
?>
--
Edit bug report at http://bugs.php.net/?id=42715&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42715&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42715&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42715&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42715&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42715&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42715&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42715&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42715&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42715&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42715&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42715&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42715&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42715&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42715&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42715&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42715&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42715&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42715&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42715&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42715&r=mysqlcfg