1
0
Fork 0

Enforce a UTC timezone if none is set to prevent misconfigured php from blowing up, refs #923

pull/1349/merge
Jordi Boggiano 2012-11-20 14:45:30 +01:00
parent 326fcbcab7
commit e5ecad7eeb
1 changed files with 5 additions and 1 deletions

View File

@ -47,12 +47,16 @@ class Application extends BaseApplication
public function __construct()
{
ErrorHandler::register();
if (function_exists('ini_set')) {
ini_set('xdebug.show_exception_trace', false);
ini_set('xdebug.scream', false);
}
if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) {
date_default_timezone_set(@date_default_timezone_get());
}
ErrorHandler::register();
parent::__construct('Composer', Composer::VERSION);
}