Skip to content

Instantly share code, notes, and snippets.



Created Nov 20, 2015
What would you like to do?
function mb_unserialize($string)
$recovered = preg_replace_callback(
function($match) {
return 's:' . mb_strlen($match[2], '8bit');
return unserialize($recovered);

This comment has been minimized.

Copy link

@marcaum54 marcaum54 commented Aug 2, 2019

TY man.... save my night

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment