Seems that this is better solution to the #245 (output buffering)

This works for both, when output_buffering is enabled, and disabled
This commit is contained in:
slawkens 2024-01-30 19:20:18 +01:00
parent ae8a9fc44c
commit 670812772d
2 changed files with 8 additions and 8 deletions

View File

@ -11,10 +11,10 @@ $error = false;
require BASE . 'install/includes/config.php';
ini_set('max_execution_time', 300);
if(ob_get_length() > 0) {
ob_implicit_flush();
ob_end_flush();
}
@ob_end_flush();
ob_implicit_flush();
header('X-Accel-Buffering: no');
if(!$error) {

View File

@ -12,10 +12,10 @@ require BASE . 'install/includes/functions.php';
require BASE . 'install/includes/locale.php';
ini_set('max_execution_time', 300);
if(ob_get_length() > 0) {
ob_implicit_flush();
ob_end_flush();
}
@ob_end_flush();
ob_implicit_flush();
header('X-Accel-Buffering: no');
/*
if(isset($config['installed']) && $config['installed'] && !isset($_SESSION['saved'])) {