# fileinfo for 5.2.2

- Thread: https://externals.io/message/28063
- Original archive: https://news-web.php.net/php.internals/28063
- Started by Kevin Waterson on 2007-02-17T22:03:10+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28063 — Kevin Waterson — 2007-02-17T22:03:10+00:00

URL: https://externals.io/message/28063#28063

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

---

## #28085 — Derick Rethans — 2007-02-20T12:51:38+00:00

URL: https://externals.io/message/28063#28085 · In reply to: #28063

> 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

---

## #28088 — Arnold Daniels — 2007-02-20T14:03:11+00:00

URL: https://externals.io/message/28063#28088 · In reply to: #28085

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:
> 
>
>   
> > […]
>
> I am all for it, but for that to do we need to make the data file 
> embedded first (like the timezonedb).
>
> regards,
> Derick

---

## #28089 — Derick Rethans — 2007-02-20T14:07:32+00:00

URL: https://externals.io/message/28063#28089 · In reply to: #28088

> 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

---

## #28091 — Arnold Daniels — 2007-02-20T14:40:25+00:00

URL: https://externals.io/message/28063#28091 · In reply to: #28089

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:
> 
>
>   
> > […]
>
> 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

---

## #28092 — Lukas Kahwe Smith — 2007-02-20T14:41:03+00:00

URL: https://externals.io/message/28063#28092 · In reply to: #28089

Derick Rethans wrote:
> 
> 
> > […]
> 
> 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
