1
0
Fork 0

Merge pull request #2948 from jakoch/patch-2

disable these xdebug settings only, if xdebug is loaded
pull/2952/head
Jordi Boggiano 2014-04-30 13:03:37 +02:00
commit 6ffd34db90
1 changed files with 2 additions and 2 deletions

View File

@ -56,11 +56,11 @@ class Application extends BaseApplication
public function __construct()
{
if (function_exists('ini_set')) {
if (function_exists('ini_set') && extension_loaded('xdebug')) {
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());
}