Skip to content

Commit

Permalink
ob_start() is marked as PHP_OUTPUT_HANDLER_REMOVABLE (i.e. it is not …
Browse files Browse the repository at this point in the history
…flushable)
  • Loading branch information
dg committed Nov 24, 2015
1 parent 1a6bbef commit 4e0af51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/UIRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/Bridges/ApplicationTracy/RoutingPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;
Expand Down

0 comments on commit 4e0af51

Please sign in to comment.