Include fileinfo in core
| From: | Kevin Waterson | Date: | Sat, 30 Dec 2006 22:49:51 +0000 |
| Subject: | Include fileinfo in core | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-27219@lists.php.net to get a copy of this message | ||
As we discussed on irc, mime_magic is now deprecated, there is currently no function
available to detirmine mimetype without pecl/pear.
You could use exec('file -bi'..) or some other fallback or ugly hack that only increases
code complexity and does not lend portability as they tend to be system/os specific.
I think its reasonable for develpers to have access to this functionality without
the need to install pecl/pear additions which in a hosting environment may not
be possible.
Kind regards
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."