8000 Support phpdbg SAPI in Debug::enable() · symfony/symfony@49a144f · GitHub
[go: up one dir, main page]

Skip to content

Commit 49a144f

Browse files
hkdobrevfabpot
authored andcommitted
Support phpdbg SAPI in Debug::enable()
1 parent 2349e97 commit 49a144f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/Debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function enable($errorReportingLevel = null, $displayErrors = true
4545
error_reporting(-1);
4646
}
4747

48-
if ('cli' !== PHP_SAPI) {
48+
if (!in_array(PHP_SAPI, array('cli', 'phpdbg'))) {
4949
ini_set('display_errors', 0);
5050
ExceptionHandler::register();
5151
} elseif ($displayErrors && (!ini_get('log_errors') || ini_get('error_log'))) {

0 commit comments

Comments
 (0)
0