-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
conflict between php zlib.output_compression and output buffering #2182
Comments
This sounds like a PHP problem, not a CodeIgniter one. |
Exactly the same issue for us too. Surely not being able to use compression is a bad thing? |
I have the same issue. So, a fake solution is if (ENVIRONMENT !== 'testing')
{
if (ini_get('zlib.output_compression'))
{
return true; //throw FrameworkException::forEnabledZlibOutputCompression();
} I hope this help. It's fine for me. |
Describe the bug
When zlib.output_compression is set to On in php.ini, CI4 cannot display any views and produces headers already sent errors.
CodeIgniter 4 version
CodeIgniter 4.0 RC1
Affected module(s)
/app/Config/Events.php
Removing this code in app/Config/Events.php, or turning off output_compression in php.ini is a temp solution.
Context
The text was updated successfully, but these errors were encountered: