美文网首页
unserialize(): Error at offset..

unserialize(): Error at offset..

作者: 半瓶阳光o_o | 来源:发表于2020-08-08 11:24 被阅读0次
    ![1596856964(1).png](https://img.haomeiwen.com/i5115978/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..

          本文链接:https://www.haomeiwen.com/subject/vcxhdktx.html