|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44828 mssql_connect returns NULL
Submitted: 2008-04-25 11:01 UTC Modified: 2008-10-13 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gerd at php-tools dot net Assigned:
Status: No Feedback Package: MSSQL related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-04-25 11:01 UTC] gerd at php-tools dot net
Well, I do have the same problem as stated in Bug #29993 - still it is not possible to add a comment to "bogus" bugs. 

Using a proper servername, username password, mssql_connect() returns NULL. Hence I cannot connect.

In case anything is wrong e.g. the password, mssql_connect() returns FALSE - as expected. 

OS: Linux 2.6.21
PHP-Version: 5.2.5

I installed the following Debian packages:
php5        5.2.5-3 server-side, HTML-embedded scripting language
php5-cli    5.2.5-3 cli for the php5 scripting language
php5-common 5.2.5-3 Common files for packages built from the php5
php5-mcrypt 5.2.5-3 MCrypt module for php5
php5-mhash  5.2.5-3 MHASH module for php5
php5-mysql  5.2.5-3 MySQL module for php5
php5-sybase 5.2.5-3 Sybase / MS SQL Server module for php5

regards, gERD

Reproduce code:
$dbc = mssql_connect('server', 'user', 'secret');
echo '<pre>' . var_export($dbc, true) . '</pre>';

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-05 08:23 UTC]
Please try using this CVS snapshot:
For Windows (zip):

For Windows (installer):

Can you please try a 5.3 snapshot? I've just submitted the patch for the new parameter parsing API for MSSQL that might resolve this.
 [2008-10-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 10:01:26 2023 UTC