Project

General

Profile

Feature #20915 ยป 11770.diff

Administrator Admin, 2009-08-24 16:06

View differences:

t3lib/class.t3lib_db.php (working copy)
}
return $ret;
}
/**
* Ping MySQL database to check if the connection is still alive. Reconnect if necessary
* mysql_ping() wrapper function
*
* @param bool TRUE if reconnect should be attempted
* @return mixed Either result of mysql_ping, or new connection ID if asked to reconnect.
*/
function sql_ping($reconnect = false) {
$pingResult = mysql_ping($this->link);
if (!$pingResult && $reconnect) {
return $this->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password);
}
return $pingResult;
}
    (1-1/1)