#38965 [NEW]: mssql_connect doesn't use TCP 1433 for external SQL Server
From: aren at cambre dot biz
Operating system: Windows 2003 (for both servers)
PHP version: 4.4.4
PHP Bug Type: MSSQL related
Bug description: mssql_connect doesn't use TCP 1433 for external SQL Server
Description:
------------
When using mssql_connect to connect to a SQL Server database on a remote
server, PHP attemtps to connect using named pipes. This is a terribly
outdated behavior; SQL Server connections these days are almost always
done with TCP 1433.
I figured this out with a difficult phpBB installation and using Wireshark
(formerly Ethereal) to watch network traffic. There is a registry hack that
can force the SQL Server Client program to use TCP 1433, but this hack's
effects on other software is unknown.
For more info, see
http://people.smu.edu/acambre/blog/2006/09/22/Buggy+PHP.aspx
and
http://www.phpbb.com/phpBB/viewtopic.php?t=446662&postdays=0&postorder=asc&start=0
Reproduce code:
---------------
Just use mssql_connect to connect to an external database.
Expected result:
----------------
The database should open just as if the database is on localhost.
Actual result:
--------------
Usually a cannot connect error.
--
Edit bug report at http://bugs.php.net/?id=38965&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38965&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38965&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38965&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38965&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38965&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38965&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38965&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38965&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38965&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38965&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38965&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38965&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38965&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38965&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38965&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38965&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38965&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38965&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38965&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38965&r=mysqlcfg
Thread (8 messages)
- aren at cambre dot biz