Fix Memcached key decode
authorMatthias Mullie <git@mullie.eu>
Mon, 28 Sep 2015 07:55:28 +0000 (09:55 +0200)
committerMatthias Mullie <git@mullie.eu>
Mon, 28 Sep 2015 17:37:53 +0000 (19:37 +0200)
commit8ca796ea999b32a7525caddb3ed2febdf53b5bda
tree89c33b3600a3b15439671c541990b67e4fa6aaaf
parenta09d063de3af3f19da3ee3be579a727c816a4284
Fix Memcached key decode

Flow had a key: flowdb:flow_ref:wiki:by-source:v3:Parser\'s_"broken"_+_(page)_&_grill:testwiki:1:4.7
the '+' in there was not being encoded (it only does /[\x00-\x20\x25\x7f]+/)
but coming back, it was decoded into ' '.
getMulti() shows a key=>value array or results. Since key was different,
we couldn't find what we had requested.

Bug: T110326
Change-Id: Ia92edd73d0eb7fe0d35e38e7e7af8174fb85cbcc
includes/objectcache/MemcachedBagOStuff.php
tests/phpunit/includes/objectcache/BagOStuffTest.php