【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 PHP, Symfony 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以上的时候会报错的问题。
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 PHP, Symfony 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以上的时候会报错的问题。
相关文章推荐
- PHP Warning: date() [funct…
- PHP异常: " Warning: Cannot modify header information - headers already sent by ...."
- PHP Warning: ob_start() : output handler 'ob_gzhandler conflicts with 'zlib output compression'
- php curl_init函数用法
- php 浮点数转化函数
- PHP是如何显示“hello word”的?
- PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - /xd5/xd2/xb2/xbb/xb5/xbd/xd6/xb8/xb6/xa8/xb5/xc4/x
- Android 4.2系统 LG&nbs…
- PHP isset()与empty()的使用区别详…
- PHP MVC模式之我见
- PHP Socket 编程简单实例
- 用PHP, MySQL和jQuery mobile建一…
- PHP 目录操作
- php 处理二维数组(去除重复项,排…
- php isset()和 empty() 区别
- Warning: Unexpected character in input: '' (ASCII=21) state=1 in /usr/local/php/bin/php-cgi on line 383
- PHP 时间 时区设置 方法
- PHP + MySQL 分表减低数据库压力
- PHP stream_context_create()作用…
- php webservice实例(转载)