note 94536 deleted from function.memcache-delete by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jun 2010 14:28:38 +0000 |
| Subject: | note 94536 deleted from function.memcache-delete by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170295@lists.php.net to get a copy of this message | ||
Note Submitter: harv at pringo dot com
----
With the recent versions of memcached 1.4.3, the delete returns false because there is an error with
the latest stable pecl extension 2.2.5.
Running memcached in -vvv mode will show why deletes fail:
CLIENT_ERROR bad command line format. Usage: delete <key> [noreply]
Simple fix, updated your memcache.c in your PECL extension at line 1494, in the mmc_delete()
function. Change the command_len to the following:
command_len = spprintf(&command, 0, "delete %s", key);
This basically gets rid of that deprecated 3rd parameter, and deletes will work again. Hope this
helps somebody (and gets fixed eventually).