Search code examples
phpoutput-bufferingini-set

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


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?


Solution

  • 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.