Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'zlib output compression' handler #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mihai-iorga
Copy link

If you change zlib output compression setting in between ob_start, ob_end_clean or ob_end_flush (Smarty does this)
you will get: ob_end_flush() failed to delete buffer zlib output compression.

Workaround for smarty, added at line 1853:

else if ( $handler === 'zlib output compression' ) {
if (ob_get_level()) {
while (@ob_end_clean());
}
}

smarty_ob

If you change zlib output compression setting in
between ob_start, ob_end_clean or ob_end_flush, 
you will get: ob_end_flush() failed to delete buffer zlib output compression.

Added - 1853: 

 else if ( $handler === 'zlib output compression' ) {
    if (ob_get_level()) {
        while (@ob_end_clean());
    }
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant