PHP 4.0 Bug #5986 Updated: Combination of msql() and msql_connect() causes lost connections.
| From: | Bug Database | Date: | Fri, 11 Aug 2000 08:49:33 +0000 |
| Subject: | PHP 4.0 Bug #5986 Updated: Combination of msql() and msql_connect() causes lost connections. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28482@lists.php.net to get a copy of this message | ||
ID: 5986
User Update by: pete@byways.org
Status: Open
Bug Type: mSQL related
Description: Combination of msql() and msql_connect() causes lost connections.
I believe that the problem is caused by the msql_globals.default_link value being set to an mSQL
database link that has been closed by _close_msql_link in php_msql.c. Ideally, when a database link
is closed, if it's the default link, then reset the default link to -1. I'm not sure how
to do that in the code. I can get the script to work if I add this line to the _close_msql_link
function:
msql_globals.default_link = -1;
However, I'm sure this is a less than adequate method, since we don't want to reset it all
the time.
Full Bug description available at: http://bugs.php.net/?id=5986