Somebody
Somebody

Reputation: 9645

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 ;)

Upvotes: 5

Views: 11712

Answers (1)

Montana Harkin
Montana Harkin

Reputation: 419

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

Upvotes: 4

Related Questions