MDL-73317 session: Log extra details for cachestore changes

More visibility depth is required for cachestore changes since they
are usually multi dimensional arrays.
This commit is contained in:
Matthew Hilton
2023-02-09 12:03:49 +10:00
parent 9c8d8502c0
commit 4faa3204d6
+5
View File
@@ -778,6 +778,11 @@ class manager {
$error = "Script $ME mutated the session after it was closed:";
foreach ($arraydiff as $key => $value) {
$error .= ' $SESSION->' . $key;
// Extra debugging for cachestore session changes.
if (strpos($key, 'cachestore_') === 0 && is_array($value)) {
$error .= ': ' . implode(',', array_keys($value));
}
}
debugging($error);
}