till
2009-07-14 f7df6c4c4d2e132997f5ed248c1d3dab2f575be5

* added check for date.timezone



1 files modified
23 ■■■■ changed files
installer/check.php 23 ●●●● patch | view | raw | blame | history
installer/check.php
@@ -16,7 +16,7 @@
$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0,
    'zend.ze1_compatibility_mode' => 0, 'mbstring.func_overload' => 0,
    'suhosin.session.encrypt' => 0);
    'suhosin.session.encrypt' => 0, 'date.timezone' => '-NOTEMPTY-');
$source_urls = array(
    'Sockets' => 'http://www.php.net/manual/en/ref.sockets.php',
@@ -131,10 +131,27 @@
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");
        } else {
            switch ($var) {
                case 'date.timezone':
                    if (date_default_timezone_get() === false) {
                        $RCI->fail($var, "is '$status', but the settings is wrong");
                        echo '<br />';
                        continue;
                    }
                    break;
            }
            $RCI->pass($var);
        }
        echo '<br />';
        continue;
    }
    if ($status == $val) {
        $RCI->pass($var);
    }
    else {
    } else {
      $RCI->fail($var, "is '$status', should be '$val'");
    }
    echo '<br />';