自带cookie函数带json_decode方法导致不能正确返回COOKIE

浏览:840 发布日期:2012/09/05
3.1.0 - 严重 - 已关闭
613 行开始:
if ('' === $value) {
return isset($_COOKIE[$name]) ? json_decode(MAGIC_QUOTES_GPC?stripslashes($_COOKIE[$name]):$_COOKIE[$name]) : null; // 获取指定Cookie
} else {

我使用$_COOKIE['test']是正常的,用cookie('test')则没有返回值,删掉json_decode之后就正常了。说实话,这个json_decode是干嘛的?
评论(
后面还有条评论,点击查看>>