note 77975 deleted from function.finfo-file by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 26 Apr 2011 09:40:40 +0000 |
| Subject: | note 77975 deleted from function.finfo-file by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179142@lists.php.net to get a copy of this message | ||
Note Submitter: spazdaq at hotmail dot com
----
FYI
contrary to the documentation, finfo_file seems to be returning a semicolon delimited string that
contains not just the mime type but also the character set.
so
$finfo = finfo_open(FILEINFO_MIME);
echo(finfo_file($finfo, $my_file));
returns: text/plain; charset=us-ascii
it may be dependent on the magic file, but i'm too lazy to investigate further.