diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-14 14:31:39 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-14 14:31:39 +0200 |
commit | d409a545c2ec28b57711c4a6ee6f66b4916932b7 (patch) | |
tree | 9e69ff298cafbe78c1abca0aa6491e1c85f89712 /installer | |
parent | bf1d94076ddf79df7787f89ff373666d6fbcf30f (diff) | |
parent | c563c2cc26bd947a5ccee6cae13dc11047d69f09 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Conflicts:
CHANGELOG
Diffstat (limited to 'installer')
-rw-r--r-- | installer/check.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/installer/check.php b/installer/check.php index 52460bb0f..d6c9f5c40 100644 --- a/installer/check.php +++ b/installer/check.php @@ -35,12 +35,12 @@ $ini_checks = array( 'suhosin.session.encrypt' => 0, 'magic_quotes_runtime' => 0, 'magic_quotes_sybase' => 0, + 'date.timezone' => '-NOTEMPTY-', ); $optional_checks = array( // required for utils/modcss.inc, should we require this? 'allow_url_fopen' => 1, - 'date.timezone' => '-NOTEMPTY-', ); $source_urls = array( @@ -171,7 +171,15 @@ foreach ($ini_checks as $var => $val) { $status = ini_get($var); if ($val === '-NOTEMPTY-') { if (empty($status)) { - $RCI->fail($var, "cannot be empty and needs to be set"); + $RCI->fail($var, "empty value detected"); + } else if ($var == 'date.timezone') { + try { + $tz = new DateTimeZone($status); + $RCI->pass($var); + } + catch (Exception $e) { + $RCI->fail($var, "invalid value detected: $status"); + } } else { $RCI->pass($var); } |