【发布时间】:2010-11-11 15:20:28
【问题描述】:
我收到这个错误
可捕获的致命错误:无法将类 __PHP_Incomplete_Class 的对象转换为 user.php 中第 248 行的字符串 这条线
function loadUser($userID)
{
global $db;
$res = $db->getrow("SELECT * FROM `{$this->dbTable}` WHERE `{$this->tbFields['userID']}` = '".$this->escape($userID)."' LIMIT 1");
if ( !$res )
return false;
$this->userData = $res;
$this->userID = $userID;
$_SESSION[$this->sessionVariable] = $this->userID;
return true;
}
见
var_dump($_SESSION);
array(1) { ["user"]=> &object(__PHP_Incomplete_Class)#1 (12) { ["__PHP_Incomplete_Class_Name"]=> string(11) "jooria_user" ["dbTable"]=> string(5) "users" ["sessionVariable"]=> string(4) "user" } }
【问题讨论】:
-
第248行有几行?
-
你能在你的代码中指出第 248 行是什么吗?
标签: php