[Pkg-owncloud-commits] [owncloud] 42/122: Remove hard-dependency on disabled output_buffering
David Prévot
taffit at moszumanska.debian.org
Sat May 9 00:00:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 4b9e0349687512c6ea4435b2dcdb36ce7a3f02fc
Author: Lukas Reschke <lukas at owncloud.com>
Date: Mon May 4 14:15:15 2015 +0200
Remove hard-dependency on disabled output_buffering
This removes the hard-dependency on output buffering as requested at https://github.com/owncloud/core/issues/16013 since a lot of distributions such as Debian and Ubuntu decided to use `4096` instead of the PHP recommended and documented default value of `off`.
However, we still should encourage disabling this setting for improved performance and reliability thus the setting switches in `.user.ini` and `.htaccess` are remaining there. It is very likely that we in other cases also should disable the output buffering but aren't doing it everywhere and thus causing memory problems.
Fixes https://github.com/owncloud/core/issues/16013
---
apps/files/appinfo/remote.php | 2 ++
lib/private/util.php | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/files/appinfo/remote.php b/apps/files/appinfo/remote.php
index b8dc68f..325773a 100644
--- a/apps/files/appinfo/remote.php
+++ b/apps/files/appinfo/remote.php
@@ -30,6 +30,8 @@
// no php execution timeout for webdav
set_time_limit(0);
+// Turn off output buffering to prevent memory problems
+\OC_Util::obEnd();
// Backends
$authBackend = new \OC\Connector\Sabre\Auth();
diff --git a/lib/private/util.php b/lib/private/util.php
index 102dc8c..f4624cf 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -672,7 +672,6 @@ class OC_Util {
),
'ini' => [
'mbstring.func_overload' => 0,
- 'output_buffering' => false,
'default_charset' => 'UTF-8',
],
);
--
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