From ad45ade8a0d1ff8c779240b200c1086d9809f3f9 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 26 Apr 2016 13:08:21 +0000 Subject: [PATCH] Added check for php.ini timezone being set --- validate.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/validate.php b/validate.php index a130921cfc..afc28a8660 100755 --- a/validate.php +++ b/validate.php @@ -136,11 +136,8 @@ if(strstr($strict_mode, 'STRICT_TRANS_TABLES')) { print_warn('You have MySQL STRICT_TRANS_TABLES enabled, it is advisable to disable this until full support has been added: https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html'); } -// Test for MySQL InnoDB buffer size -$innodb_buffer = innodb_buffer_check(); -if ($innodb_buffer['used'] > $innodb_buffer['size']) { - print_warn("Your Innodb buffer is full, consider increasing its size"); - echo warn_innodb_buffer($innodb_buffer); +if (empty(ini_get('date.timezone'))) { + print_fail('You have no timezone set for php: http://php.net/manual/en/datetime.configuration.php#ini.date.timezone'); } // Test transports