Symfony LswMemcacheBundle LoggingMemcache::get() should be compatible

When running Symfony application with LeaseWeb/LswMemcacheBundle, below error:

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

It is cause by php-memcached 2.2.x gives runtime notices and should be avoided!

For those who used php-memcached 2.2.x, may uninstall it and install with php-memcached 2.1.0.
Using php pecl, uninstall memcached:

/Applications/MAMP/bin/php/php5.6.7/bin/pecl uninstall memcached

Install memcached-2.1.0:

/Applications/MAMP/bin/php/php5.6.7/bin/pecl i memcached-2.1.0

Reference: LeaseWeb/LswMemcacheBundle
(Check for requirements section)

By Keenlio, June 16, 2015

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 3 = eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>