#33028 [Opn->Bgs]: mime_content_type returns inaccurate Office content types
| From: | tony2001@php.net | Date: | Sat, 14 May 2005 09:02:43 +0000 |
| Subject: | #33028 [Opn->Bgs]: mime_content_type returns inaccurate Office content types | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78997@lists.php.net to get a copy of this message | ||
ID: 33028
Updated by: tony2001@php.net
Reported By: matt at kanchi dot org
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: OS X
PHP Version: 4.3.10
New Comment:
So, the bug is not in PHP, but in your mime.magic file.
No PHP bug -> bogus.
Previous Comments:
------------------------------------------------------------------------
[2005-05-14 00:55:38] matt at kanchi dot org
In case you meant "file -i /path/to/file.ppt", that returns the same as
mime_content_type does (in my case) for those files. -k returns only
one result.
------------------------------------------------------------------------
[2005-05-14 00:50:38] matt at kanchi dot org
Gotcha. It returns:
(filename): Microsoft Office Document
------------------------------------------------------------------------
[2005-05-13 23:33:09] tony2001@php.net
No, I meant running this command in console.
------------------------------------------------------------------------
[2005-05-13 22:37:18] matt at kanchi dot org
Do you mean mime_content_type("file /path/to/file")? If so, that
returns the error, "mime_magic: invalid mode 0156130."
------------------------------------------------------------------------
[2005-05-13 21:37:46] tony2001@php.net
Does this work:
file /path/to/file.ppt ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33028
--
Edit this bug report at http://bugs.php.net/?id=33028&edit=1