Enter your search

Item deletion bug in PECL memcache package

By

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.

You May Also Like

Group 5 Created with Sketch. Group 11 Created with Sketch. CLOSE ICON Created with Sketch. icon-microphone Group 9 Created with Sketch. CLOSE ICON Created with Sketch. SEARCH ICON Created with Sketch. Group 4 Created with Sketch. Path Created with Sketch. Group 5 Created with Sketch.