Skip to content

Commit

Permalink
Борьба с битриксовой буферизацией.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Apr 25, 2021
1 parent c629261 commit 81b4a26
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Base/BitrixableTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,16 @@ protected function setupDatabaseData() : void
*/
private function clearBitrixBuffer() : void
{
while (ob_get_level()) {
ob_end_clean();
}

if ($GLOBALS['APPLICATION']) {
$GLOBALS['APPLICATION']->RestartBuffer();
}
$output = $GLOBALS['APPLICATION']->EndBufferContentMan();

// Эксперимент.
// while (ob_get_level()) {
// ob_end_clean();
// }
//
// if ($GLOBALS['APPLICATION']) {
// $GLOBALS['APPLICATION']->RestartBuffer();
// }
}

/**
Expand Down

0 comments on commit 81b4a26

Please sign in to comment.