Use clone to break object refs when setting and getting cache. see #8146 #8191

git-svn-id: https://develop.svn.wordpress.org/trunk@9740 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-17 21:01:12 +00:00
parent 013e95be71
commit 0aba3305b3
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -2872,4 +2872,9 @@ function wp_suspend_cache_invalidation($suspend = true) {
return $current_suspend;
}
function wp_clone($object) {
return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
}
?>