if no default server is set, cannot check the client library

This commit is contained in:
Marc Delisle
2007-11-25 12:54:32 +00:00
parent ece4453a04
commit 95ef0e2d28

View File

@@ -290,16 +290,18 @@ if ($GLOBALS['using_mb_charset'] && !@extension_loaded('mbstring')) {
* (a difference on the third digit does not count). * (a difference on the third digit does not count).
* If someday there is a constant that we can check about mysqlnd, we can use it instead * If someday there is a constant that we can check about mysqlnd, we can use it instead
* of strpos(). * of strpos().
* If no default server is set, PMA_DBI_get_client_info() is not defined yet.
*/ */
$_client_info = PMA_DBI_get_client_info(); if (function_exists('PMA_DBI_get_client_info')) {
if ($server > 0 && strpos($_client_info, 'mysqlnd') === false && substr(PMA_MYSQL_CLIENT_API, 0, 3) != substr(PMA_MYSQL_INT_VERSION, 0, 3)) { $_client_info = PMA_DBI_get_client_info();
trigger_error(PMA_sanitize(sprintf($strMysqlLibDiffersServerVersion, if ($server > 0 && strpos($_client_info, 'mysqlnd') === false && substr(PMA_MYSQL_CLIENT_API, 0, 3) != substr(PMA_MYSQL_INT_VERSION, 0, 3)) {
$_client_info, trigger_error(PMA_sanitize(sprintf($strMysqlLibDiffersServerVersion,
substr(PMA_MYSQL_STR_VERSION, 0, strpos(PMA_MYSQL_STR_VERSION . '-', '-')))), $_client_info,
E_USER_NOTICE); substr(PMA_MYSQL_STR_VERSION, 0, strpos(PMA_MYSQL_STR_VERSION . '-', '-')))),
E_USER_NOTICE);
}
unset($_client_info);
} }
unset($_client_info);
/** /**
* prints list item for main page * prints list item for main page
* *