unserialize(): Error at offset... bytes

![1596856964(1).png](https://upload-images.jianshu.io/upload_images/5115978-1612261efaef0f0e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


解决

//        $includeFile = unserialize($matches[1]);
         $includeFile = preg_replace_callback('/(?<=^|\{|;)s:(\d+):\"(.*?)\";(?=[asbdiO]\:\d|N;|\}|$)/s',
         function($m){
            return 's:' . strlen($m[2]) . ':"' . $m[2] . '";';
         },
        $matches[1] );
         $includeFile =  unserialize($includeFile);

你可能感兴趣的:(unserialize(): Error at offset... bytes)