Skip to content

Commit

Permalink
Seems that this is better solution to the #245 (output buffering)
Browse files Browse the repository at this point in the history
This works for both, when output_buffering is enabled, and disabled
  • Loading branch information
slawkens committed Jan 30, 2024
1 parent ae8a9fc commit 6708127
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions install/tools/5-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
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) {
Expand Down
8 changes: 4 additions & 4 deletions install/tools/7-finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
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'])) {
Expand Down

0 comments on commit 6708127

Please sign in to comment.