Value-by-reference bug (with fix!)
-
Here is a patch for a bug with the Memcached plugin.
https://gist.github.com/jeffstieler/6641955
If you retrieve an object value from Memcached and then modify that object, you actually modify the in-memory copy stored in $this->cache[$key].
This patch clones the object later in the get() method, avoiding the problem.
- The topic ‘Value-by-reference bug (with fix!)’ is closed to new replies.