2014-02-26 88 views
1

我在Symfony2應用程序中使用LswMemcacheBundleSymfony2 Memcached配置問題

我在我的應用程序中配置了所有配置。我在nginx服務器上安裝了所有插件。

當我跑我的申請,我得到了以下錯誤:

Runtime Notice: Declaration of Lsw\MemcacheBundle\Cache\LoggingMemcache::get() should be compatible with Memcached::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL) 

我無法弄清楚這個問題。

+1

您是否安裝了'php5-memcached'擴展名和'memcached'包(*注* * * * * * * *)?你使用什麼版本的memcached,php5-memcached和php?什麼操作系統? – nifr

+0

memcache支持=>已啓用, 版本=> 3.0.8, 版本=> $版本:329835, php版本=> 5.4.25, 操作系統:centos, server:nginx –

回答

0

這是php-memcached 2.2.0中的一個錯誤,有幾種解決方法。

  • 安裝PHP-2.1.0的memcached不具備這個錯誤
  • 安裝從主分支具有修復
  • 升級LswMemcachedBundle 2版本,它使用的memcache擴展
  • 打開的PHP的memcached關閉錯誤報告(不推薦)

此錯誤是在LswMemcachedBundlephp-memcached project

很好的報告的通知