ThinkPHP某个Controlller调用公共function的方法导致500(Internal Server Error)

thinkphp3.2.3版本。
我在项目中新增了一个SupportController,其中有个方法如下

    public function index(){         
        $url="http://www.baidu.com";
        var_dump(check_remote_url($img_qiniu)); //check_remote_url是common/function中的方法
        //如果把上面这行注释就不会报错500 (Internal Server Error)
    }

check_remote_url是公共函数common/function中的方法,只要一使用就报错500 (Internal Server Error),注释掉又好了。
不光是这个check_remote_url,只要这个新增的控制器使用公共函数中的方法都报错。

补充:最诡异的是,在我没新增之前,项目本身有个TestController,其中也有使用公共函数common/function中的方法,但是没有任何问题。

请问是什么原因???

largeQ
浏览 445回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP