Changeset cd96fd6 in github


Ignore:
Timestamp:
Apr 1, 2010 10:42:56 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
44155cd
Parents:
70318e5
Message:
  • Add some critical PHP settings check to prevent bugs like this (#1486307)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/iniset.php

    r929a508 rcd96fd6  
    2121*/ 
    2222 
     23// Some users are not using Installer, so we'll check some 
     24// critical PHP settings here. Only these, which doesn't provide 
     25// an error/warning in the logs later. See (#1486307). 
     26$crit_opts = array( 
     27    'mbstring.func_overload' => 0, 
     28    'suhosin.session.encrypt' => 0, 
     29    'session.auto_start' => 0, 
     30    'file_uploads' => 1, 
     31); 
     32foreach ($crit_opts as $optname => $optval) { 
     33    if ($optval != ini_get($optname)) { 
     34        die("ERROR: Wrong '$optname' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!"); 
     35    } 
     36} 
    2337 
    2438// application constants 
Note: See TracChangeset for help on using the changeset viewer.