Support phpdbg SAPI in Debug::enable()

This commit is contained in:
Haralan Dobrev 2018-03-26 23:55:11 +03:00 committed by Fabien Potencier
parent 2349e977ff
commit 49a144f28c
1 changed files with 1 additions and 1 deletions

View File

@ -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'))) {