BUG 8978 "Upgrade de la version 2.0.39 a la version 2.0.40 no ..." SOLVED

- for some php versions date.timezone is not configurated by default, that why th problem
- on cli.php date.timezone is being configurated now, if env.ini exists, its configuration in read
This commit is contained in:
Erik Amaru Ortiz
2012-04-12 18:47:00 -04:00
parent 489861baa3
commit 412967ce18
4 changed files with 27 additions and 10 deletions

View File

@@ -1030,13 +1030,13 @@ class System {
/* Read the env.ini */
$ini_contents = parse_ini_file($iniFile, false);
// validation debug config, ony accept bynary values, 1 to enable
$ini_contents['debug'] = $ini_contents['debug'] == 1 ? 1 : 0;
if ($ini_contents !== false) {
$config = array_merge($config, $ini_contents);
}
// validation debug config, ony accept bynary values, 1 to enable
$config['debug'] = $config['debug'] == 1 ? 1 : 0;
return $config;
}