diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-05-05 12:34:22 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-05-05 12:34:22 +0200 |
commit | 9530e819eb4cc6355336cccbe8b6124cd4743581 (patch) | |
tree | cd26d516839fa5f4a20dff8c39551cd97815114d /lib/base.php | |
parent | 5aa3525479a29ea0521db9050d3ef22e17729e94 (diff) | |
download | nextcloud-server-9530e819eb4cc6355336cccbe8b6124cd4743581.tar.gz nextcloud-server-9530e819eb4cc6355336cccbe8b6124cd4743581.zip |
Don't display errors and log them
Fixes https://github.com/owncloud/core/issues/16014
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php index d22385c86df..86620ff95a7 100644 --- a/lib/base.php +++ b/lib/base.php @@ -542,12 +542,10 @@ class OC { \OC::$server->getEventLogger()->log('autoloader', 'Autoloader', $loaderStart, $loaderEnd); \OC::$server->getEventLogger()->start('boot', 'Initialize'); - // set some stuff - //ob_start(); + // Don't display errors and log them error_reporting(E_ALL | E_STRICT); - if (defined('DEBUG') && DEBUG) { - ini_set('display_errors', 1); - } + @ini_set('display_errors', 0); + @ini_set('log_errors', 1); date_default_timezone_set('UTC'); |