ID:               20298
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Analyzed
+Status:           Bogus
 Bug Type:         ODBC related
 Operating System: Windows 2000 Server SP2
 PHP Version:      4.3.0-pre2
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Not saying this is bogus but can you try the release version just to
make sure?  

I did test this on a win2k build recently and found it to work under
CGI.  how are you running this?


Previous Comments:
------------------------------------------------------------------------

[2002-12-18 13:59:45] [EMAIL PROTECTED]

I'm unable to reproduce this on the UNIX end of things.  Anyone with a
Windows boxen working that can test this?

------------------------------------------------------------------------

[2002-11-07 07:41:49] [EMAIL PROTECTED]

Make sure the odbc.check_persistent is on and that
odbc.allow_persistent is on. Set up a database connection called
dsnname
Run the script below (substituting [tabname] for a valid table name in
your database).
Check that you have persistent connections, ie with the webserver idle
make sure your database shows connections from the webserver.

Restart the database or kill the session belonging to the web server.

Re-run the script below and the odbc_exec fails with an error: 
"connection not open"  or smililar depending on your odbc driver.
I have found this effect to be the same with the Postgres odbc driver
and the Informix 3.30 odbc driver.

I presume that odbc.check_persistent is supposed to check that the
connection is still attached to the database before pconnect gives it
to the script?

<?
$dbconn = odbc_pconnect("dsnname","","");
$rid = odbc_exec($dbconn,"select * from [tabname]");

?>

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20298&edit=1

Reply via email to