Bug #75887 [NEW]: mime type detection problem
| From: | tunderzone at gmail dot com | Date: | Mon, 29 Jan 2018 21:21:44 +0000 |
| Subject: | Bug #75887 [NEW]: mime type detection problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213749@lists.php.net to get a copy of this message | ||
From: tunderzone at gmail dot com
Operating system:
PHP version: 7.1.13
Package: Filesystem function related
Bug Type: Bug
Bug description:mime type detection problem
Description:
------------
having ".text" as first characters on any line of a css file will result
in mime being resolved as text/x-asm.
Test script:
---------------
<?php
$info = finfo_open(FILEINFO_MIME_TYPE);
$tipe = finfo_buffer($info, '.text {color: #CCCCCC;}');
var_dump($tipe);
finfo_close($info);
Expected result:
----------------
text/css
or
text/plain
Actual result:
--------------
text/x-asm
--
Edit bug report at https://bugs.php.net/bug.php?id=75887&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75887&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75887&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75887&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75887&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75887&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75887&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75887&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75887&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75887&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75887&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75887&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75887&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75887&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75887&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75887&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75887&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75887&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75887&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75887&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75887&r=mysqlcfg