Doc #79325 [NEW]: MIME type of MP3s over 50MB is incorrect
| From: | michael at beorn dot me | Date: | Sat, 29 Feb 2020 18:48:45 +0000 |
| Subject: | Doc #79325 [NEW]: MIME type of MP3s over 50MB is incorrect | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17345@lists.php.net to get a copy of this message | ||
From: michael at beorn dot me
Operating system: macOS, Ubuntu
PHP version: 7.4.3
Package: Filesystem function related
Bug Type: Documentation Problem
Bug description:MIME type of MP3s over 50MB is incorrect
Description:
------------
---
From manual page: https://php.net/function.mime-content-type
---
An MP3 file over 50,000,000 bytes (50 MB base-10) is reported to have a
MIME type of âapplication/octet-streamâ instead of the correct
âaudio/mpegâ:
Test script:
---------------
echo mime_content_type('test-over-50mb.mp3') . " > " .
filesize('test-over-50mb.mp3');
application/octet-stream > 50030096
echo mime_content_type(âtest-under-50mb.mp3') . " > " .
filesize(âtest-under-50mb.mp3');
audio/mpeg > 49730577
Expected result:
----------------
The expected result is that an MP3 audio file over 50MB is reported as
having a MIME type of "audio/mpeg".
Actual result:
--------------
An MP3 file over 50,000,000 bytes (50 MB base-10) is reported to have a
MIME type of âapplication/octet-streamâ.
--
Edit bug report at https://bugs.php.net/bug.php?id=79325&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79325&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79325&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79325&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79325&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79325&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79325&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79325&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79325&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79325&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79325&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79325&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79325&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79325&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79325&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79325&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79325&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79325&r=mysqlcfg