ID: 20298 User updated by: t_o_m_ at yahoo dot com Reported By: t_o_m_ at yahoo dot com -Status: Bogus +Status: Open Bug Type: ODBC related Operating System: Windows 2000 Server SP2 -PHP Version: 4.3.0-pre2 +PHP Version: 4.3.0 New Comment:
Yes still a problem under 4.3.0 I am using the ISAPI module. I don't believe that persistent connections are supported at all under CGI. So odbc_pconnect == odbc_connect which would give the illusion of working, although the connection would not actually be persisting. The first time you reload the page after killing the database connection you get: Warning: SQL error: No response from the backend; Subsequent reloads give: Warning: SQL error: Could not send Query(connection dead); Previous Comments: ------------------------------------------------------------------------ [2003-01-19 19:10:05] [EMAIL PROTECTED] 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? ------------------------------------------------------------------------ [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] t_o_m_ at yahoo dot com 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