Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49a144f

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Debug/Debug.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/Debug.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.