Fatal error: Call to undefined function think\response\finfo_open() in /www/wwwroot/www.darmacash.net/thinkphp/library/think/response/Download.php on line 115
出错了

[1] ErrorException in Download.php line 115

Call to undefined function think\response\finfo_open()

  1. * @param string $filename 文件名
  2. * @return string
  3. */
  4. protected function getMimeType($filename)
  5. {
  6. if (!empty($this->mimeType)) {
  7. return $this->mimeType;
  8. }
  9. $finfo = finfo_open(FILEINFO_MIME_TYPE);
  10. return finfo_file($finfo, $filename);
  11. }
  12. /**
  13. * 设置下载文件的显示名称
  14. * @access public
  15. * @param string $filename 文件名
  16. * @param bool $extension 后缀自动识别

Call Stack

  1. in Download.php line 115
  2. at Error::appShutdown()

Environment Variables

GET Data
/download/3_html
POST Dataempty
Filesempty
Cookiesempty
Session
think { "terminal": "yes" }
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_STATUS 200
proxy-nokeepalive 1
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST darmacash.net
HTTP_CONNECTION Keep-Alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE <address>Apache Server at darmacash.net Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME darmacash.net
SERVER_ADDR 103.144.241.216
SERVER_PORT 80
REMOTE_ADDR 18.208.126.130
DOCUMENT_ROOT /www/wwwroot/www.darmacash.net/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/www.darmacash.net/public
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/www.darmacash.net/public/index.php
REMOTE_PORT 44658
REDIRECT_URL /download/3.html
REDIRECT_QUERY_STRING /download/3.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING /download/3.html
REQUEST_URI /download/3.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1594642075.7986
REQUEST_TIME 1594642075
Environment Variablesempty
ThinkPHP Constants
MODULE_NAME index
ACTION_NAME download
DBNAME
ISPAGE 1