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
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:
34 - 24 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC