debug) {
$format = "There is happen error information: %s ." . " the file name: %s , on line : %s . ";
printf($format, $info, $file, $line);
$error = debug_backtrace();
print_r($error[0]);
}
}
/**
* setDebug
* @deprecated 设置是否输出调试信息
* @param boolean true or false
* @return void
*/
function setDebug($bool) {
$this->debug = is_bool($bool) ? $bool : false;
}
/**
* getDebug * @deprecated 查看是否打开调试信息
* @param void
* @return boolean
*/
function getDebug() {
return $this->debug;
}
}
?>
文章网址:
随意转载^^但请附上教程地址。











