首页 > Web开发 > 详细

php unserialize报错解决记录

时间:2015-12-22 12:56:41      阅读:194      评论:0      收藏:0      [点我收藏+]

Fatal error: main(): The script tried to execute a method or access a property of an incomplete object.

Please ensure that the class definition "xx类"; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition 

 

使用反序列化对象时候,要提前定义类。

使用include把自己的"xx类"包含进来。

php unserialize报错解决记录

原文:http://www.cnblogs.com/bmwa/p/5066248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!