From 4e0af51477a776d4bc8da521fc92fed25476c918 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 24 Nov 2015 15:57:33 +0100 Subject: [PATCH] ob_start() is marked as PHP_OUTPUT_HANDLER_REMOVABLE (i.e. it is not flushable) --- src/Bridges/ApplicationLatte/UIRuntime.php | 2 +- src/Bridges/ApplicationTracy/RoutingPanel.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bridges/ApplicationLatte/UIRuntime.php b/src/Bridges/ApplicationLatte/UIRuntime.php index 6f3dd5dc5..1678e5d78 100644 --- a/src/Bridges/ApplicationLatte/UIRuntime.php +++ b/src/Bridges/ApplicationLatte/UIRuntime.php @@ -27,7 +27,7 @@ public static function renderSnippets(UI\Control $control, \stdClass $local, arr if ($name[0] !== '_' || !$control->isControlInvalid((string) substr($name, 1))) { continue; } - ob_start(); + ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE); $function = reset($function); $snippets = $function($local, $params + ['_snippetMode' => TRUE]); $payload->snippets[$id = $control->getSnippetId((string) substr($name, 1))] = ob_get_clean(); diff --git a/src/Bridges/ApplicationTracy/RoutingPanel.php b/src/Bridges/ApplicationTracy/RoutingPanel.php index 62185f7a8..e042cc9ea 100644 --- a/src/Bridges/ApplicationTracy/RoutingPanel.php +++ b/src/Bridges/ApplicationTracy/RoutingPanel.php @@ -65,7 +65,7 @@ public function __construct(Nette\Application\IRouter $router, Nette\Http\IReque public function getTab() { $this->analyse($this->router); - ob_start(); + ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE); $request = $this->request; require __DIR__ . '/templates/RoutingPanel.tab.phtml'; return ob_get_clean(); @@ -78,7 +78,7 @@ public function getTab() */ public function getPanel() { - ob_start(); + ob_start(NULL, 0, PHP_OUTPUT_HANDLER_REMOVABLE); $request = $this->request; $routers = $this->routers; $source = $this->source;