当我安装 Laravel 4 时,我收到此错误:
ErrorException
unserialize(): Error at offset 0 of 32 bytes
C:\xampp\htdocs\blog\laravel\bootstrap\compiled.php
return unserialize($this->stripPadding($this->mcryptDecrypt($value, $iv)));
如果我像这样修改返回:
return unserialize(base64_decode($this->stripPadding($this->mcryptDecrypt($value, $iv))));
然后错误消失。但当然,每次我运行 composer update 时,这个更改都会被撤消。
这个问题的原因可能是什么?
我很感激任何帮助。
更新:这只发生在我使用 Auth::check() 时。
更新 2:现在它只适用于移除 base64_decode()。就像 xampp 安装已经变得有自我意识一样。耶稣!