ID:               24738
 Updated by:       [EMAIL PROTECTED]
-Summary:          odb_connect called twice returns same resource id
 Reported By:      phpbug at tab1 dot clara dot co dot uk
 Status:           Open
-Bug Type:         ODBC related
+Bug Type:         Feature/Change Request
 Operating System: W2K SP4
 PHP Version:      4.3.2
 New Comment:

Known issue, being re-categorized as a Feature Request.  

As a solution, if you change any of the values in the connect call,
this should work.  Yes, I know, this is a pain, but the current system
is designed based upon a hash of the DSN/USER/PASSWORD.


Previous Comments:
------------------------------------------------------------------------

[2003-07-21 11:16:00] phpbug at tab1 dot clara dot co dot uk

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 this bug report at http://bugs.php.net/?id=24738&edit=1

Reply via email to