From:             diptiporwal at gmail dot com
Operating system: Win 2003
PHP version:      4.4.1
PHP Bug Type:     MSSQL related
Bug description:  mssql_connect does not work for username longer than 30 
characters

Description:
------------
Just trying to connect to MS sql server using mssql_connect, using the
following line of code 

$conn = mssql_connect($DBServerName, $DBUser, $DBPassword);

If the length of variable $DBUser exceeds 30 characters, it returns the
following error:login failed for user(null) : Reason : Not a trusted
connection associated with SQL server was found.

Reproduce code:
---------------
$conn = mssql_connect($DBServerName, $DBUser, $DBPassword);

mssql_select_db($DBName, $conn);

                }

Expected result:
----------------
Database connection should succeed with any length of characters below the
max string length acceptable in php.


-- 
Edit bug report at http://bugs.php.net/?id=35148&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35148&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35148&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35148&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35148&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35148&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35148&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35148&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35148&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35148&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35148&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35148&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35148&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35148&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35148&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35148&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35148&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35148&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35148&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35148&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35148&r=mysqlcfg

Reply via email to