#29993 [Opn->Bgs]: mssql_connect returns NULL
| From: | fmk@php.net | Date: | Mon, 06 Sep 2004 22:21:30 +0000 |
| Subject: | #29993 [Opn->Bgs]: mssql_connect returns NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65845@lists.php.net to get a copy of this message | ||
ID: 29993
Updated by: fmk@php.net
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