动态实例化TagLibCx失败

浏览:705 发布日期:2013/11/12 分类:求助交流
代码,首先来到 ThinkTemplate.class.php 找到 parseTagLib函数。中间有一句:
$tLib = Think::instance($className);
$className 赋值为 TagLibCx

然后跟踪函数到达:Think.class.php,有这么一句:
static public function instance($class,$method='') {
$identify = $class.$method;
if(!isset(self::$_instance[$identify])) {
if(class_exists($class)){
$o = new $class();

增加调试如下:
static public function instance($class,$method='') {
$identify = $class.$method;
if(!isset(self::$_instance[$identify])) {
if(class_exists($class)){ dump($class);
$o = new $class();dump($o);

结果提示:
string(8) "TagLibCx"

第二个dump完全没反应,即实例化失败了。类名是找到了,为啥会实例化失败呢。该如何修改或者调试?
最佳答案
评论( 相关
后面还有条评论,点击查看>>