note 94536 added to function.memcache-delete
| From: | harv at pringo dot com | Date: | Tue, 10 Nov 2009 23:17:10 +0000 |
| Subject: | note 94536 added to function.memcache-delete | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162724@lists.php.net to get a copy of this message | ||
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).
----
Server IP: 208.69.120.35
Probable Submitter: 76.90.138.61
----
Manual Page -- http://www.php.net/manual/en/function.memcache-delete.php
Edit -- https://master.php.net/note/edit/94536
Del: integrated -- https://master.php.net/note/delete/94536/integrated
Del: useless -- https://master.php.net/note/delete/94536/useless
Del: bad code -- https://master.php.net/note/delete/94536/bad+code
Del: spam -- https://master.php.net/note/delete/94536/spam
Del: non-english -- https://master.php.net/note/delete/94536/non-english
Del: in docs -- https://master.php.net/note/delete/94536/in+docs
Del: other reasons-- https://master.php.net/note/delete/94536
Reject -- https://master.php.net/note/reject/94536
Search -- https://master.php.net/manage/user-notes.php