Work around APCu memory corruption bug
authorOri Livneh <ori@wikimedia.org>
Sun, 13 Dec 2015 06:09:32 +0000 (22:09 -0800)
committerOri Livneh <ori@wikimedia.org>
Mon, 14 Dec 2015 05:35:59 +0000 (21:35 -0800)
commitad3c2d0202861954393fac99970fb6fa610d6f31
tree765e6360495f2b964d9daf184fa52af6111b5bea
parentea838e7899a2cb12701c49b865755895947e8210
Work around APCu memory corruption bug

APCu's object serialization causes memory corruption when apc.serializer is set
to 'default' (see https://github.com/krakjoe/apcu/issues/38). We can work
around this bug by falling back to the pre-I4b2cf17155 behavior of
APCBagOStuff, which is not to trust apc_store() with anything other than
strings and integers, and instead serialize everything in user-space PHP code.

Bug: T120267
Change-Id: If34a1d959e2700792514b372af52919940222d83
includes/libs/objectcache/APCBagOStuff.php