diff --git a/src/Symfony/Component/Debug/Debug.php b/src/Symfony/Component/Debug/Debug.php index 2075d39e34..1e29d45826 100644 --- a/src/Symfony/Component/Debug/Debug.php +++ b/src/Symfony/Component/Debug/Debug.php @@ -45,7 +45,7 @@ class Debug error_reporting(-1); } - if ('cli' !== PHP_SAPI) { + if (!in_array(PHP_SAPI, array('cli', 'phpdbg'))) { ini_set('display_errors', 0); ExceptionHandler::register(); } elseif ($displayErrors && (!ini_get('log_errors') || ini_get('error_log'))) {