PHP Warning "Warning: ob_start(): function '' not found or invalid function name" in Symfony 1?
php, symfony1
Solution
Try using a `null` value instead of the empty string.
ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : null);
Problem
Why am I getting: Warning: ob_start(): function '' not found or invalid function name in /symfony-1.3\lib\config\sfApplicationConfiguration.class.php on line 155 This occurs with Symfony 1.x projects. I am using Apache 2.2 and PHP 5.4.1. The mentioned line has: ``` ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); ```