From 24159d6bac26454d26260a36c46b99c1d68cf158 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 11 Sep 2007 08:07:10 +0000 Subject: [PATCH] check minimum database version requirements --- libraries/common.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 1f05a6a3d..9aec0fa85 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -817,6 +817,17 @@ if (! defined('PMA_MINIMUM_COMMON')) { // Pass #2 of DB-Config to read in user level DB-Config will go here // Robbat2 - May 11, 2002 + /** + * with phpMyAdmin 3 we do not support MySQL < 5 + * but at the current time i suggest checking only >= 4.1 + * or 4.1. + * (4.1. is the oldest version currently supported by MySQL) + * cybot_tm + */ + if (PMA_MYSQL_INT_VERSION < 40100) { + PMA_fatalError('strUpgrade', array('MySQL', '5.0')); + } + @ini_set('track_errors', $bkp_track_err); unset($bkp_track_err);