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
 [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

Pull Requests

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: Sat Dec 21 14:01:32 2024 UTC