#24738 [NEW]: odb_connect called twice returns same resource id

From: Date: Mon, 21 Jul 2003 16:16:00 +0000
Subject: #24738 [NEW]: odb_connect called twice returns same resource id
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44427@lists.php.net to get a copy of this message
From: phpbug at tab1 dot clara dot co dot uk Operating system: W2K SP4 PHP version: 4.3.2 PHP Bug Type: ODBC related Bug description: odb_connect called twice returns same resource id Description: ------------ I really did want two different connections since I want to run a sub-query for every row retuned in the first query. If I try that with one connection I get, not unreasonably: "connection busy" Reproduce code: --------------- <? $dbconn = odbc_connect("DSNNAME","",""); $dbconn2 = odbc_connect("DSNNAME","",""); print_r($dbconn); print_r($dbconn2); ?> Expected result: ---------------- I expected the resouce ID's to be different Actual result: -------------- C:\php>cli\php filenote.php Resource id #5Resource id #5 -- Edit bug report at http://bugs.php.net/?id=24738&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24738&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24738&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24738&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24738&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24738&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24738&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24738&r=support Expected behavior: http://bugs.php.net/fix.php?id=24738&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24738&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24738&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24738&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24738&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24738&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24738&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24738&r=gnused

« previous php.bugs (#44427) next »