pecl-memcache icon indicating copy to clipboard operation
pecl-memcache copied to clipboard

get() can return invalid values after a PHP OOM

Open WPprodigy opened this issue 1 year ago • 1 comments

If a php request OOM's while requesting a key from memcached, then the next request (using persistent connections) will be given the value for that last request regardless of what key it actually requested. This obviously results in very unfun behavior application-side 😬

I've created a repo for easy replication: https://github.com/WPprodigy/memcache-inconsistency-debugging, using the latest release of this extension.

WPprodigy avatar Jul 17 '23 21:07 WPprodigy

This is likely the same thing that was reported here: https://bugs.php.net/bug.php?id=74235. I wanted to open up a Github issue to help others that are looking for an explanation to some pretty maddening behavior :)

WPprodigy avatar Jul 17 '23 21:07 WPprodigy