note 97603 added to memcached.cas
| From: | abodera at gmail dot com | Date: | Tue, 27 Apr 2010 20:19:39 +0000 |
| Subject: | note 97603 added to memcached.cas | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168735@lists.php.net to get a copy of this message | ||
Watch out!
When using binary protocol, the expected result after cas() is 21 (Memcached::RES_END).
For example, to make the above example #1 work with binary protocol, use the following:
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);
$m->setOption(Memcached::OPT_BINARY_PROTOCOL,true)
// [...]
} else {
$ips[] = $_SERVER['REMOTE_ADDR'];
$m->cas($cas, 'ip_block', $ips);
}
} while ($m->getResultCode() != Memcached::RES_END);
----
Server IP: 194.24.174.37
Probable Submitter: 83.30.22.64
----
Manual Page -- http://www.php.net/manual/en/memcached.cas.php
Edit -- https://master.php.net/note/edit/97603
Del: integrated -- https://master.php.net/note/delete/97603/integrated
Del: useless -- https://master.php.net/note/delete/97603/useless
Del: bad code -- https://master.php.net/note/delete/97603/bad+code
Del: spam -- https://master.php.net/note/delete/97603/spam
Del: non-english -- https://master.php.net/note/delete/97603/non-english
Del: in docs -- https://master.php.net/note/delete/97603/in+docs
Del: other reasons-- https://master.php.net/note/delete/97603
Reject -- https://master.php.net/note/reject/97603
Search -- https://master.php.net/manage/user-notes.php