Php: Output_Buffering Ini Option Is Ignored

Php: Output_Buffering Ini Option Is Ignored

From phpinfo() output:

Loaded Configuration File => /usr/local/lib/php.ini

output_buffering => 0 => 0

Inside /usr/local/lib/php.ini

output_buffering = 4096

Php script results of ini_get('output_buffering') is 0

I have tried to enable output_buffering at the begining of php script with ini_set('output_buffering',4092), but it's not helping.

What can cause this behavior?

Thanks ;)

5

1 Answer

You probably have multiple php.ini files.

Do a search on your system for other php.ini files around.

Another note, output_buffering can not be set via ini_set as it is a PHP_INI_PERDER setting. See and

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.