I have problems with a script. The error log says I should change the preg_replace to preg_replace_callback
I dont know how to do it, so please help.
function __unserialize($string) {
$unserialized = stripslashes($string);
$unserialized = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $unserialized );
return unserialize($unserialized);
}
Edit: I did try to do it. so if you want to see what I tried I ofcourse can show. But it reutned a blank screen