Skip to content

Commit

Permalink
Merge pull request #2 from bullfrogchampion/add_nested_ob_support
Browse files Browse the repository at this point in the history
Add support for nested output buffers
  • Loading branch information
kenorb committed Mar 24, 2016
2 parents c7ba5b2 + ba1be6f commit 417cd1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/php_error.php
Original file line number Diff line number Diff line change
Expand Up @@ -3585,7 +3585,9 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {

// clean out anything displayed already
try {
@ob_clean();
while(ob_get_level() > 0) {
ob_end_clean();
}
} catch ( Exception $ex ) { /* do nothing */ }

if (!$this->htmlOnly && ErrorHandler::isNonPHPRequest()) {
Expand Down

0 comments on commit 417cd1c

Please sign in to comment.