8000 merged branch bamarni/patch-1 (PR #7895) · symfony/symfony@1284714 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1284714

Browse files
committed
merged branch bamarni/patch-1 (PR #7895)
This PR was merged into the master branch. Discussion ---------- [Debug] tweak for #6474 This keeps the previous behavior as described in the comment. Commits ------- 7d67b5b [Debug] tweak for #6474
2 parents 457e6ab + 7d67b5b commit 1284714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Debug/Debug.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public static function enable($errorReportingLevel = null, $displayErrors = true
4646
ErrorHandler::register($errorReportingLevel, $displayErrors);
4747
if ('cli' !== php_sapi_name()) {
4848
ExceptionHandler::register();
49-
} elseif (!ini_get('log_errors') || ini_get('error_log') && $displayErrors) {
49+
// CLI - display errors only if they're not already logged to STDERR
50+
} elseif ($displayErrors && (!ini_get('log_errors') || ini_get('error_log'))) {
5051
ini_set('display_errors', 1);
5152
}
5253

0 commit comments

Comments
 (0)
0