fileinfo for 5.2.2

php.internals

Kevin Waterson

19 years ago
Is it possible to include the current pecl extension fileinfo. It is just silly not having the ability to verify a file type as a standard feature. This was discussed earlier and it was thought to have some merit. Can we make it happen? Kevin

Derick Rethans

19 years ago
On Sun, 18 Feb 2007, Kevin Waterson wrote:
> Is it possible to include the current pecl extension fileinfo. > It is just silly not having the ability to verify a file type as a > standard feature. This was discussed earlier and it was thought to > have some merit. Can we make it happen?
I am all for it, but for that to do we need to make the data file embedded first (like the timezonedb). regards, Derick

Arnold Daniels

19 years ago
I'm also very in favor of this, though I like it much better if it would use the same config file as `file` uses. Otherwise it's quite confusion where to config magic and hard to understand why the result differs. Arnold Derick Rethans wrote:

Derick Rethans

19 years ago
On Tue, 20 Feb 2007, Arnold Daniels wrote:
> I'm also very in favor of this, though I like it much better if it would use > the same config file as `file` uses. Otherwise it's quite confusion where to > config magic and hard to understand why the result differs.
The idea is to embed the database so that you don't have to configure it - that's currently the big problem with the current (deprecated) solution. regads, Derick

Arnold Daniels

19 years ago
I understand, but on most (linux) systems libmagic is already installed and fully configured. Perhaps a good solution would be if you would be able to specify the configuration path in php.ini. Arnold Derick Rethans wrote:

Lukas Kahwe Smith

19 years ago
Derick Rethans wrote:
> On Tue, 20 Feb 2007, Arnold Daniels wrote: > >> I'm also very in favor of this, though I like it much better if it would use >> the same config file as `file` uses. Otherwise it's quite confusion where to >> config magic and hard to understand why the result differs. > > The idea is to embed the database so that you don't have to configure it > - that's currently the big problem with the current (deprecated) > solution.
I have added fileinfo as a to be discussed item on the 5.3 todo list: http://oss.backendmedia.com/PhP53 regards, Lukas