think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

2021-29 日提交的 "改进withAttr方法" 会导致模型无法被序列化

Open MoeGrid opened this issue 3 years ago • 1 comments

今天composer update了一下, 突然发现系统登录不了了, debug半天发现是 think\session\Store 序列化报错了

报错内容:

Serialization of 'Closure' is not allowed

试了一下Cache果然也是报这个...

v2.0.47v2.0.46 这两版本都有这个问题

MoeGrid avatar Dec 31 '21 14:12 MoeGrid

我也出现这个,以为是程序出了问题,前天也来提问了 但是自己调试了下,确实是:模型无法被序列化,只能自己转化为数组,就没有错误了 说是自己程序里面没有转化为数组原因呢,那也是自己原因,说的框架原因了,我不知道到底怎么扯淡了。

hulang avatar Jan 04 '22 13:01 hulang