note 102485 added to memcache.get
| From: | MichaelBrenden at osu1 dot php dot net | Date: | Thu, 17 Feb 2011 10:46:20 +0000 |
| Subject: | note 102485 added to memcache.get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177061@lists.php.net to get a copy of this message | ||
Beware, if there's a backslash present in the key name then the results are unpredictable and
random.
I was generating keys like this:
$mc_key = get_called_class(). $_COOKIE['crumb'];
This works fine when get_called_class() returns CLASSNAME.
But then I began using namespaces, and get_class_class() of course returned NAMESPACE\CLASSNAME
Well that backslash sends Memcache into quite the tizzy.
No errors, mind you, just insanity.
----
Server IP: 64.71.164.2
Probable Submitter: 70.91.82.193
----
Manual Page -- http://www.php.net/manual/en/memcache.get.php
Edit -- https://master.php.net/note/edit/102485
Del: integrated -- https://master.php.net/note/delete/102485/integrated
Del: useless -- https://master.php.net/note/delete/102485/useless
Del: bad code -- https://master.php.net/note/delete/102485/bad+code
Del: spam -- https://master.php.net/note/delete/102485/spam
Del: non-english -- https://master.php.net/note/delete/102485/non-english
Del: in docs -- https://master.php.net/note/delete/102485/in+docs
Del: other reasons-- https://master.php.net/note/delete/102485
Reject -- https://master.php.net/note/reject/102485
Search -- https://master.php.net/manage/user-notes.php