ccm417 发表于 2012-8-9 16:42:03

请教一个 unserialize() 相关的问题.非常感谢

系统打开首页的时候,有点不正常,总是要打两次,第一次是错误的,第二次就好了,我看了日志,其中有一个 Severity: Notice 如下,看了以前的LOG,是没有这个情况的,请大家指点一下,这个是什么错?指向的系统文件,没有手动改过,应该不会有错.谢谢了.

DEBUG - 2012-08-09 16:40:15 --> Config Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Hooks Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Utf8 Class Initialized
DEBUG - 2012-08-09 16:40:15 --> UTF-8 Support Enabled
DEBUG - 2012-08-09 16:40:15 --> URI Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Router Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Output Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Security Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Input Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-09 16:40:15 --> Language Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Loader Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: url_helper
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: form_helper
DEBUG - 2012-08-09 16:40:15 --> Database Driver Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Session Class Initialized
DEBUG - 2012-08-09 16:40:15 --> Helper loaded: string_helper
ERROR - 2012-08-09 16:40:15 --> Severity: Notice--> unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 4432 of 4436 bytes D:\wwwroot\wwwewike\wwwroot\system\libraries\Session.php 724
DEBUG - 2012-08-09 16:40:15 --> Session routines successfully run
DEBUG - 2012-08-09 16:40:15 --> Controller Class Initialized

ccm417 发表于 2012-8-12 13:01:45

悲哀呀.....竟然连一个回复都没有.....这么多天了......

jeongee 发表于 2012-8-12 15:37:48

ccm417 发表于 2012-8-12 13:01 static/image/common/back.gif
悲哀呀.....竟然连一个回复都没有.....这么多天了......

这个你得把参数值放出来才能知道为什么反序列化出错,你这样发,大家也不好给你解答,呵呵

太尉天上飞 发表于 2012-8-12 17:24:59

unserialize的时候遇到某些字符会出错,例如serialize一个类,类中带有private或protected的变量是,序列化的字符串中会出现空占位符,你再反序列化这个值的话就这样咧。
想要知道问题答案,必须把问题描述清楚,正如楼上说的。:L

ccm417 发表于 2012-8-15 20:07:41

非常抱歉,前面讲的太过激了,因为页面只是打开主页,基本上什么操作都没做,所以当时没有细查,给出了不完整的信息.
今天log_message了出来,发现是在session类载入时反序列化出错,
好像是因为这些session中含有中文字符,所以出了问题,只得再次请教大家,应该如何解决? 谢谢
页: [1]
查看完整版本: 请教一个 unserialize() 相关的问题.非常感谢