Call to undefined function finfo_open()

2019-06-14 08:03发布

问题:

In my phpinfo, it say's that the fileinfo is enabled. But Im still getting the error Call to undefined function finfo_open(). What am I missing? Please see the image of my configuration command.

EDIT : I don't have a direct access to php.ini because im using a shared hosting. I can request them to update it for me but im not exactly sure what other else are needed to enable other than fileinfo.

回答1:

In your php.ini there should be something similar to ;extension=fileinfo.so or ;extension=php_fileinfo.dll. You will need to remove the ; to enable these. It looks like it's trying to call a function from the .dll but cannot find it.