问题:使用empty(lib::getcookie('auth'))时,服务器出现500错误 原因:empty() 只检测变量,检测任何非变量的东西都将导致解析错误。换句话说,后边的语句将不会起作用:empty(addslashes($name))。(来自于PHP手册)