php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #804 2 subsequent connections to same database failed
Submitted: 1998-10-01 09:31 UTC Modified: 1999-02-16 04:34 UTC
From: jbr at adviser dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 3.0.4 OS: Linux 2.0.35
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
26 + 35 = ?
Subscribe to this entry?

 
 [1998-10-01 09:31 UTC] jbr at adviser dot com
If in the same document more than 1 call to odbc_connect are performed,
the second or subsequent calls fail witout an error. The returned id is empty. Connections with different user/password to the same source will succeed.
Tested with adabas d database.

Sample code:

$cid = odbc_connect($server,$user,$pass);
echo "ID1=$cid<BR>";
odbc_close($cid);
$cid = odbc_connect($server,$user,$pass);
echo "ID2=$cid<BR>";
odbc_close($cid);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-16 04:34 UTC] kara
Fixed in 3.0.6
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 00:01:28 2024 UTC