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