ID: 29993 Updated by: [EMAIL PROTECTED] Reported By: mel dot boyce at gmail dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: Windows XP PHP Version: 5.0.1 New Comment:
mssql_connect() and mssql_pconnect() can return false or a valid resource link. This is infact what it does. If the connect fails for any reason ot wil return false, not null. Previous Comments: ------------------------------------------------------------------------ [2004-09-06 07:48:53] mel dot boyce at gmail dot com Description: ------------ mssql_connect() returns NULL regardless of a sane and completed connection. PHP-5.0.1 zip file from http://www.php.net/ php.ini is identical to php.ini-recommended with the mssql extension enabled. Reproduce code: --------------- $foo = mssql_connect("server", "user", "pass"); var_dump($foo); Expected result: ---------------- $foo != NULL Actual result: -------------- $foo == NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29993&edit=1