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 😉
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 http://php.net/manual/en/configuration.changes.modes.php and http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering