JavaShuo
栏目
标签
tp5 ThinkPHP5 报Serialization of 'Closure' is not allowed
时间 2021-01-09
栏目
PHP
繁體版
原文
原文链接
今天在写查询时碰到这个问题: 原因:如果你的全局域里有闭包的话就会报错为 “对闭包的序列化是不允许的” , 我发现我前面写的where() 方法中使用了闭包,查询结果使用了cache()方法(cache方法是将数据序列化存入文件中),去除cache方法后不会报此错误,或者不使用where闭包方法也不会报此错误,任意修改其中之一之后就不会报这个错误了。
>>阅读原文<<
相关文章
1.
Error: Content is not allowed in prolog
2.
Mysql报错"Host '27,45,38,132' is not allowed to connect
3.
ios打包报错:User interaction is not allowed
4.
APPS:Bother, why password reuse is not allowed
5.
Navigating to current location ("/") is not allowed
6.
Public Key Retrieval is not allowed
7.
JDBC:Public Key Retrieval is not allowed
8.
[ERROR]element select is not allowed here
9.
C++ Class incomplete type is not allowed
10.
SQLNonTransientConnectionException: Public Key Retrieval is not allowed
更多相关文章...
•
PHP Closure::call()
-
PHP 7 新特性
•
SQL NOT NULL 约束
-
SQL 教程
•
PHP Ajax 跨域问题最佳解决方案
•
Kotlin学习(一)基本语法
相关标签/搜索
closure
allowed
serialization
tp5
thinkphp5
not...else
tutorial1.serialization
for...of
for..of
this.props....is
PHP
JavaScript
PHP 7 新特性
Spring教程
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
JDK JRE JVM,JDK卸载与安装
2.
Unity NavMeshComponents 学习小结
3.
Unity技术分享连载(64)|Shader Variant Collection|Material.SetPassFast
4.
为什么那么多人用“ji32k7au4a83”作密码?
5.
关于Vigenere爆0总结
6.
图论算法之最小生成树(Krim、Kruskal)
7.
最小生成树 简单入门
8.
POJ 3165 Traveling Trio 笔记
9.
你的快递最远去到哪里呢
10.
云徙探险中台赛道:借道云原生,寻找“最优路线”
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Error: Content is not allowed in prolog
2.
Mysql报错"Host '27,45,38,132' is not allowed to connect
3.
ios打包报错:User interaction is not allowed
4.
APPS:Bother, why password reuse is not allowed
5.
Navigating to current location ("/") is not allowed
6.
Public Key Retrieval is not allowed
7.
JDBC:Public Key Retrieval is not allowed
8.
[ERROR]element select is not allowed here
9.
C++ Class incomplete type is not allowed
10.
SQLNonTransientConnectionException: Public Key Retrieval is not allowed
>>更多相关文章<<