From 8fd82784b2191bc5fd76fad79f456c46bfac3b8e Mon Sep 17 00:00:00 2001 From: jakoch Date: Wed, 30 Apr 2014 11:29:52 +0200 Subject: [PATCH] disable these xdebug settings only, if xdebug is loaded --- src/Composer/Console/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 9d622cf67..da5d4ff20 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -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()); }