From: rriehle at gmail dot com Operating system: XP SP2 PHP version: 5.1.2 PHP Bug Type: MSSQL related Bug description: mssql_connect and mssql_pconnect do not accept password longer than 30 chars
Description: ------------ Using SQL Server 2005 (SP1). Unable to connect with logins that have passwords greater than 30 characters long using mssql_connect or mssql_pconnect. The logins work fine from the server client tools; I spent hours troubleshooting this. sigh. The reason the passwords I was trying to use were 32 characters is becuase I was using MD5 hashes of plain passwords for my server logins. Reproduce code: --------------- $dbh = mssql_pconnect("MyHost", "testlogin", "passwordpasswordpasswordpassword"); OR $dbh = mssql_connect("BUILDWAY-NET", "testlogin", "passwordpasswordpasswordpassword"); Expected result: ---------------- Expect $dbh to hold a link identifier to a mssql connection. I expected that the statements would connect with passwords that have a length as long as the server can accept. Actual result: -------------- Returns false with these messages: Debug Warning: c:\Inetpub\wwwroot\includes\ez_sql-ms.php line 71 - mssql_pconnect() [<a href='file:///C:\Program Files\Zend\ZendStudioClient-5.1.0\docs\PHPmanual/function.mssql-pconnect'>function.mssql-pconnect</a>]: message: Login failed for user 'testlogin'. (severity 14) Debug Warning: c:\Inetpub\wwwroot\includes\ez_sql-ms.php line 71 - mssql_pconnect() [<a href='file:///C:\Program Files\Zend\ZendStudioClient-5.1.0\docs\PHPmanual/function.mssql-pconnect'>function.mssql-pconnect</a>]: Unable to connect to server: BUILDWAY-NET Errors are the same for mssql_connect (except that the p in mssql_pconnect is left out). -- Edit bug report at http://bugs.php.net/?id=37232&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37232&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37232&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37232&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37232&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37232&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37232&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37232&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37232&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37232&r=support Expected behavior: http://bugs.php.net/fix.php?id=37232&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37232&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37232&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37232&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37232&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37232&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37232&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37232&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37232&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37232&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37232&r=mysqlcfg