开发者

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?

Tha开发者_JAVA技巧nks ;)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜