小编Chr*_*ris的帖子

文件信息 PHP 错误 - 找不到类“finfo”,但模块在 php.ini 中

我在获取文件信息时遇到问题。它在 PHP.ini 中启用,但是当我运行 php -m 时它没有列出。我有 PHP 5.5,所以它应该是标准的,不需要 pecl。我是新手,很困惑,所以请善待。

php -m

[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
filter
ftp
gd
gettext
hash
iconv
imagick
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
openssl
pcre
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
XCache
XCache Cacher
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
XCache
XCache Cacher
the ionCube PHP Loader
Run Code Online (Sandbox Code Playgroud)

在我的 PHP.ini

extension = "fileinfo.so"
Run Code Online (Sandbox Code Playgroud)

php fileinfo php-extension

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

fileinfo ×1

php ×1

php-extension ×1