Skip to content

Commit 81b4a26

Browse files
committed
Борьба с битриксовой буферизацией.
1 parent c629261 commit 81b4a26

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/Base/BitrixableTestCase.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,16 @@ protected function setupDatabaseData() : void
9999
*/
100100
private function clearBitrixBuffer() : void
101101
{
102-
while (ob_get_level()) {
103-
ob_end_clean();
104-
}
105-
106-
if ($GLOBALS['APPLICATION']) {
107-
$GLOBALS['APPLICATION']->RestartBuffer();
108-
}
102+
$output = $GLOBALS['APPLICATION']->EndBufferContentMan();
103+
104+
// Эксперимент.
105+
// while (ob_get_level()) {
106+
// ob_end_clean();
107+
// }
108+
//
109+
// if ($GLOBALS['APPLICATION']) {
110+
// $GLOBALS['APPLICATION']->RestartBuffer();
111+
// }
109112
}
110113

111114
/**

0 commit comments

Comments
 (0)