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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user