note 102485 added to memcache.get

[email protected] Thu, 17 Feb 2011 02:46:20 -0800
Newsgroups php.notes
Message-ID <[email protected]>
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