为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

PHP
largeQ 2019-03-13 05:07:11
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中的方法,但是没有任何问题。 请问是什么原因???
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 441 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信