https://bugzilla.wikimedia.org/show_bug.cgi?id=69788

            Bug ID: 69788
           Summary: MapCacheLRU caches references to objects rather than
                    copies of objects
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

MapCacheLRU::set, when the $value passed in is an object, appears to just store
a reference to $value rather than a copy of $value itself. This means that
future changes to $value also affects the cached copy, which is probably not
what we want in a cache.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to