What's happening on your site right now?

Find out with GoSquared. Real-time web analytics.


Try GoSquared Free.

Item deletion bug in PECL memcache package

Geoff Wagstaff / November 30, 2009

Dev with Geoff - Development time with our CTO Geoff Wagstaff

Since memcached version 1.4.3, the item deletion function (Memcache::delete()) in the PECL memcache package fails with an error similar to “CLIENT_ERROR bad command line format. Usage: delete [noreply]” due to a feature removal in memcache 1.4.0 and above. Details about this feature removal and the problems it caused have been published by the memcached team.

The memcached team have recently released version 1.4.4, adding backwards compatibility support for clients such as the PECL memcache extension and rectifying this issue, but for those of you who would like to patch the PECL extension directly, I’m putting a patched version of beta 3.0.4 up for download over at GoSquared Labs.

This is a simple fix which uncomments the code in memcache_ascii_protocol.c and memcache_binary_protocol.c that pertains to the “linger time” of the deleted item. However, simply upgrading to version 1.4.4 of memcached should rectify the PECL extension problem anyway.

Who is on my website right now? Find out with GoSquared - real-time web analytics and traffic monitoring.

No Response so far Follow Comments on this Post with RSS

Have Your SaySigned in as | Sign Out

GoSquared Features - respond now, not tomorrow. GoSquared on Facebook - Keep up to date with us on Facebook GoSquared on Twitter - follow us why don't you! About GoSquared