Changeset f7df6c4 in github


Ignore:
Timestamp:
Jul 14, 2009 11:05:57 AM (4 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ec31b6f9
Parents:
df3c357
Message:
  • added check for date.timezone
File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/check.php

    r2d1a451 rf7df6c4  
    1717$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0, 
    1818    'zend.ze1_compatibility_mode' => 0, 'mbstring.func_overload' => 0, 
    19     'suhosin.session.encrypt' => 0); 
     19    'suhosin.session.encrypt' => 0, 'date.timezone' => '-NOTEMPTY-'); 
    2020 
    2121$source_urls = array( 
     
    132132foreach ($ini_checks as $var => $val) { 
    133133    $status = ini_get($var); 
     134    if ($val === '-NOTEMPTY-') { 
     135        if (empty($status)) { 
     136            $RCI->fail($var, "cannot be empty and needs to be set"); 
     137        } else { 
     138            switch ($var) { 
     139                case 'date.timezone': 
     140                    if (date_default_timezone_get() === false) { 
     141                        $RCI->fail($var, "is '$status', but the settings is wrong"); 
     142                        echo '<br />'; 
     143                        continue; 
     144                    } 
     145                    break; 
     146            } 
     147            $RCI->pass($var); 
     148        } 
     149        echo '<br />'; 
     150        continue; 
     151    } 
    134152    if ($status == $val) { 
    135153        $RCI->pass($var); 
    136     } 
    137     else { 
     154    } else { 
    138155      $RCI->fail($var, "is '$status', should be '$val'"); 
    139156    } 
Note: See TracChangeset for help on using the changeset viewer.