MyBB Community Forums

Full Version: my_unserialize() breaking cache reading.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The following line:
https://github.com/mybb/mybb/blob/featur...e.php#L176

$data = my_unserialize($cache_data['cache']);

Seems to be breaking reading of cache entries that exceed some amount of data. My profilefields entry is a serialized string of 59588 characters while my threadfields entry is 40114 characters long.

It is fixed after updating the line to use unserialize() instead.

Both keep breaking after enabling the new apcu cache handler. But I post it here because I don't think that to be the direct cause.
There's a PR open for this Omar - https://github.com/mybb/mybb/pull/3801