Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c0f481

Browse files
committed
merged branch bamarni/patch-1 (PR #7005)
This PR was merged into the master branch. Commits ------- ed58e36 [HttpKernel] CLI - don't always display errors Discussion ---------- [HttpKernel] CLI - don't always display errors I had closed #6370 by mistake when cleaning up my branches. --------------------------------------------------------------------------- by sstok at 2013-02-13T15:13:16Z :+1:
2 parents ea9883f + ed58e36 commit 1c0f481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function init()
105105
ErrorHandler::register($this->errorReportingLevel);
106106
if ('cli' !== php_sapi_name()) {
107107
ExceptionHandler::register();
108-
} else {
108+
} elseif (!ini_get('log_errors') || ini_get('error_log')) {
109109
ini_set('display_errors', 1);
110110
}
111111
}

0 commit comments

Comments
 (0)