Browse Source

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
tags/v8.1.0beta1
Lukas Reschke 9 years ago
parent
commit
4b9e034968
2 changed files with 2 additions and 1 deletions
  1. 2
    0
      apps/files/appinfo/remote.php
  2. 0
    1
      lib/private/util.php

+ 2
- 0
apps/files/appinfo/remote.php View File

@@ -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();

+ 0
- 1
lib/private/util.php View File

@@ -672,7 +672,6 @@ class OC_Util {
),
'ini' => [
'mbstring.func_overload' => 0,
'output_buffering' => false,
'default_charset' => 'UTF-8',
],
);

Loading…
Cancel
Save