php ini_set() changes don't take with safe mode off

Jared Eitnier picture Jared Eitnier · Feb 14, 2013 · Viewed 7.6k times · Source

I wanted to turn output buffering off. Currently it shows no value for local and master. I run ini_set('output_buffering',4092); and no changes in phpinfo(). Safe mode is off.

What's the next thing to check?

Answer

cryptic ツ picture cryptic ツ · Feb 14, 2013

output_buffering can only be set via PHP_INI_PERDIR which according to the documentation is:

Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)

Only PHP_INI_ALL and PHP_INI_USER allows setting directive inside a PHP file.