I have a disconnect() function which looks like this:
Code: Select all
function disconnect()
{
if ($this->database_connection && !DB::isError($this->database_connection)) {
$this->database_connection->disconnect();
}
}It appears to work as intended most of the time, but one of the classes that extends it seems to be trying to close a connection that either doesn't exist or may have been already closed generating the following error in the log files:
Code: Select all
[Wed Feb 13 17:50:19 2008] [error] PHPWARN (suppressed; ErrorProcessor) - 192.168.130.136: mysql_close(): 1073 is not a valid MySQL-Link resource in /usr/local/php5/lib/php/DB/mysql.php at line 277Any help would be much appreciated.
Thanks!