我真的很难在 debian wheezy 上修复这些错误。
mysql_connect():标头和客户端库次要版本不匹配。标头:50531 库:50613 core.php 在第 317 行
在升级到 php 5.4、ioncube loaders 4.4.3、xcache 3.0.3 和 percona 5.6 后,这个问题今天出现了一段时间。
到目前为止,我试图解决我尝试过的问题......
- 卸载 php(包括清除安装文件)
- 降级到 php 5.3 然后升级回来
- 降级回 percona 5.5 并升级回
- 卸载 ioncube 标头
- 卸载 xcache
不幸的是,这些都没有帮助......
--
第 317 行开始于:
$link = $this->
/**
* Initialize database connection(s)
*
* Connects to the specified master database server, and also to the slave server if it is specified
*
* @param string Name of the database server - should be either 'localhost' or an IP address
* @param integer Port of the database server (usually 3306)
* @param string Username to connect to the database server
* @param string Password associated with the username for the database server
* @param boolean Whether or not to use persistent connections to the database server
* @param string Not applicable; config file for MySQLi only
* @param string Force connection character set (to prevent collation errors)
*
* @return boolean
*/
function db_connect($servername, $port, $username, $password, $usepconnect, $configfile = '', $charset = '')
{
if (function_exists('catch_db_error'))
{
set_error_handler('catch_db_error');
}
// catch_db_error will handle exiting, no infinite loop here
do
{
$link = $this->functions[$usepconnect ? 'pconnect' : 'connect']("$servername:$port", $username, $password);
}
while ($link == false AND $this->reporterror);
restore_error_handler();
if (!empty($charset))
{
if (function_exists('mysql_set_charset'))
{
mysql_set_charset($charset);
}
else
{
$this->sql = "SET NAMES $charset";
$this->execute_query(true, $link);
}
}
return $link;
}