From: luiscervantesjane at hotmail dot com
Operating system: WINDOWS 2003
PHP version: 5.1.6
PHP Bug Type: MSSQL related
Bug description: Problem to connect to SQLSERVER 2005
Description:
------------
The web server are running in windows 2003, Version Apache/2.0.55 (Win32)
PHP/5.1.6. And when I try to connect to MSSQL 2005 over windows2003, I
can`t.
If the code move to another server windows 2000, with the same Apache
Version, PHP 5.1.6. The connection is OK.
I belive that there are a problem the connection with SO windows2003 where
are running php.
Thanks
Reproduce code:
---------------
$SERVER="SATURNO\SATURNO";
$USER="USER";
$PASSWD="PASSWORD";
$link = mssql_connect($SERVER, $USER, $PASSWD) or die ("Could not connect
MSSQL");
mssql_select_db($DATABASE,$link) or die ("Could not select database " .
$DATABASE. " in MSSQL");
$query = "Select * form TABLA";
$result = mssql_query($link,$query);
while ($row = mssql_fetch_array($result)){
print $row['ALU_NOMBRE'] . "<bR>";
}
Expected result:
----------------
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
server: SATURNO\SATURNO in C:\WEB\PRUEBAS\SQL2005\index2.php on line 5
Could not connect MSSQL
--
Edit bug report at http://bugs.php.net/?id=39319&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39319&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39319&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39319&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39319&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39319&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39319&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39319&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39319&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39319&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39319&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39319&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39319&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39319&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39319&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39319&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39319&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39319&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39319&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39319&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39319&r=mysqlcfg