MDL-25314 improved prevention of output buffering + detection of misconfigured servers

Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
This commit is contained in:
Petr Skoda
2010-11-19 03:40:43 +00:00
parent 6e4453f5f8
commit cbad562eee
18 changed files with 279 additions and 255 deletions
-2
View File
@@ -5919,8 +5919,6 @@ function db_replace($search, $replace) {
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
@ob_implicit_flush(true);
while(@ob_end_flush());
if (!$tables = $DB->get_tables() ) { // No tables yet at all.
return false;