If you are installing a symfony 1.x project on a PHP 5.4.1 (or later) version, you may encounter this warning message :
Warning: ob_start(): function ” not found or invalid function name in /var/www/lib/config/sfApplicationConfigurati
To fix it, go on your /lib/config/sfApplicationConfigurati
// compress output
if (! self::$coreLoaded) {
ob_start ( sfConfig::get ( 'sf_compressed' ) ? 'ob_gzhandler' : '' );
}
to this
// compress output
if (! self::$coreLoaded) {
ob_start ( sfConfig::get ( 'sf_compressed' ) ? 'ob_gzhandler' : null );
}
以上解决了在symfony 1.X版本下,升级了php至5.4.x以上的时候会报错的问题。