Skip to content

Commit 4e0af51

Browse files
committed
ob_start() is marked as PHP_OUTPUT_HANDLER_REMOVABLE (i.e. it is not flushable)
1 parent 1a6bbef commit 4e0af51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Bridges/ApplicationLatte/UIRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function renderSnippets(UI\Control $control, \stdClass $local, arr
2727
if ($name[0] !== '_' || !$control->isControlInvalid((string) substr($name, 1))) {
2828
continue;
2929
}
30-
ob_start();
30+
ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE);
3131
$function = reset($function);
3232
$snippets = $function($local, $params + ['_snippetMode' => TRUE]);
3333
$payload->snippets[$id = $control->getSnippetId((string) substr($name, 1))] = ob_get_clean();

src/Bridges/ApplicationTracy/RoutingPanel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(Nette\Application\IRouter $router, Nette\Http\IReque
6565
public function getTab()
6666
{
6767
$this->analyse($this->router);
68-
ob_start();
68+
ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE);
6969
$request = $this->request;
7070
require __DIR__ . '/templates/RoutingPanel.tab.phtml';
7171
return ob_get_clean();
@@ -78,7 +78,7 @@ public function getTab()
7878
*/
7979
public function getPanel()
8080
{
81-
ob_start();
81+
ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE);
8282
$request = $this->request;
8383
$routers = $this->routers;
8484
$source = $this->source;

0 commit comments

Comments
 (0)