您的位置:首页 > 编程语言 > PHP开发

【PHP】symfony Warning:&nbs…

2014-08-19 16:18 489 查看
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/sfApplicationConfiguration.class.php on line
157 Notice: ob_start(): failed to create buffer in
/var/www/lib/config/sfApplicationConfiguration.class.php on line
157

To fix it, go on your
/lib/config/sfApplicationConfiguration.class.php file and change
this

// 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 );

}

This entry was posted
in PHPSymfony and
tagged Symfony by blogadmin.
Bookmark the permalink.

转自: http://blog.adin.pro/2013-02-28/warning-ob_start-function-not-found-or-invalid-function-name-symfony/

以上解决了在symfony 1.X版本下,升级了php至5.4.x以上的时候会报错的问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: