事由:使用ThinkPHP框架,git拉取代码或者执行命令时报错unserialize(): Error at offset 0 of 9 bytes
解决:项目根目录\vendor\topthink\framework\src\think\cache\driver\File.php,将
$content = substr($content, 32);
改为
$content = substr($content, 17071);
正常显示后可改回原来的值
事由:使用ThinkPHP框架,git拉取代码或者执行命令时报错unserialize(): Error at offset 0 of 9 bytes
解决:项目根目录\vendor\topthink\framework\src\think\cache\driver\File.php,将
$content = substr($content, 32);
改为
$content = substr($content, 17071);
正常显示后可改回原来的值