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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC