From: gerd at php-tools dot net
Operating system: Linux
PHP version: 5.2.5
PHP Bug Type: MSSQL related
Bug description: mssql_connect returns NULL
Description:
------------
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:
----------------
$dbc!==null
Actual result:
--------------
$dbc===null
--
Edit bug report at http://bugs.php.net/?id=44828&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44828&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44828&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44828&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44828&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44828&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44828&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44828&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44828&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44828&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44828&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44828&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44828&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44828&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44828&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44828&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44828&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44828&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44828&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44828&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44828&r=mysqlcfg