ThinkPHP eyoucms框架在同步代码的时候出现报错解决

后端 2023-09-07

报错问题:
使用ThinkPHP框架,git拉取代码或者执行命令时报错
corelibrarythinkcachedriverFile.php 第 126 行左右
unserialize(): Error at offset 0 of 9 bytes

解决问题:
在thinkphplibrarythinkcachedriverFlie.php中,将
$content=substr($content, 32)
改为
$content=substr($content, 17071);
正常显示后可改回原来的值