From:             morphy at 6deex dot net
Operating system: win2k svr
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  mssql_connect bad behaviour

Description:
------------
mssql_connect use the same connection id with the same parameters but if
i
need different connections to the same machine with the same user but for
different database... im f**ked..

es:



after the second call the $a connection has lost its selected db



Reproduce code:
---------------
<?php
$a = mssql_connect(HOST,USER,PASS);
mssql_select_db(DB1,$a);

$b = mssql_connect(HOST,USER,PASS);
mssql_select_db(DB2,$b);
//after the second call the $a connection has lost 
//its selected db
?>

Expected result:
----------------
i expect that $a uses DB1 and $b uses DB2 even if both dbs are in the sama
host

Actual result:
--------------
the $a connection loose its own selected db

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

Reply via email to