[Fusioninventory-user] fileinfo check
David DURIEUX
d.durieux at siprossii.com
Sun Oct 6 07:07:42 UTC 2013
Le Sat, 5 Oct 2013 17:36:00 -0500
Michael Cervone <torroba3364 at gmail.com> a écrit:
>Hello.
Hi,
>I have just tried to install the Fusioninventory plugin in glpi. I am
>getting an error about the fileinfo extension not being enabled in
>PHP. I am using a hosting site and after some digging today, I found
>that the Fusioninventory plugin is doing a check on the function,
>"mime_content_type".
>
>The tech wrote the following to me (which probably means it will be a
>while until I can use the plugin), and I was wondering if there is any
>remedy...??
>
>The tech said:
>--
>If you check official PHP website you will see that function
>"mime_content_type" is deprecated:
>
>http://ua2.php.net/manual/en/function.mime-content-type.php
>
>and should be replaced with different functions provided by "fileinfo"
>PECL module. That is why your plugin says "fileinfo" is not enabled. I
>would recommend you to upgrade this plugin to some newer version which
>makes "fileinfo" check properly. --
mime_content_type is deprecated but is always a wrapper for finfo_open
+ finfo_file + finfo_close. So you need always fileinfo extension (core
for old PHP version and pecl module for newer version).
>Thanks much for any advice you can provide....
>
>Mike
Best regards,
David
++
>Sent from my iPad
More information about the Fusioninventory-user
mailing list