Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Warning "Warning: ob_start(): function '' not found or invalid function name" in Symfony 1?

Tags:

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' : ''); 
like image 365
Tower Avatar asked Apr 30 '12 08:04

Tower


1 Answers

Try using a null value instead of the empty string.

ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : null); 
like image 179
Emil Vikström Avatar answered Oct 15 '22 23:10

Emil Vikström