[Pkg-owncloud-commits] [owncloud] 59/103: Don't display errors and log them
David Prévot
taffit at moszumanska.debian.org
Sun May 31 12:32:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.
commit ecf8343905491c2addd8aca30aa2533b78a45c65
Author: Lukas Reschke <lukas at owncloud.com>
Date: Tue May 5 12:34:22 2015 +0200
Don't display errors and log them
Fixes https://github.com/owncloud/core/issues/16014
---
lib/base.php | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lib/base.php b/lib/base.php
index 8609743..27b5174 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -489,12 +489,11 @@ 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);
+
self::$CLI = (php_sapi_name() == 'cli');
date_default_timezone_set('UTC');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list