php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #964 I can't reopen a connection again in the same page
Submitted: 1998-12-02 08:45 UTC Modified: 1999-02-16 04:45 UTC
From: alphalogic at alphalogic dot it Assigned:
Status: Closed Package: ODBC related
PHP Version: 3.0.5 OS: Windows 95/NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alphalogic at alphalogic dot it
New email:
PHP Version: OS:

 

 [1998-12-02 08:45 UTC] alphalogic at alphalogic dot it
I can't reopen a connection again in the same page, even if the other connection was opened in anoter file and included with  the statement "require".
In the previous version () I could open a connection to an ODBC driver and close it several times in the same
script.

$conn = odbc_connect("","","");
odbc_close($conn);

$conn = odbc_connect("","","");
 // some intruction here will produce error like "

Warning: Bad ODBC connection number (1) in C:\InetPub\wwwroot\NotaSpese\conferimenti\index.php on line 224"


odbc_close($conn);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-16 04:45 UTC] kara
Works fine for me in latest cvs.

btw, opening the same connection multiple times like that generates poor performance.  Connections are
very slow.


ooops, I was using pconnect.  Looking into it.

Ok, fix in cvs tree now.
Fixed in 3.0.6
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 05:01:24 2020 UTC