|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-12-15 20:46 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2018-12-15 20:46 UTC] ab@php.net
[2018-12-23 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 05:00:01 2025 UTC |
Description: ------------ I decided to try PHP 7.3 today, and some things broke because both mime_content_type and finfo_file (with FILEINFO_MIME) were returning application/octet-stream when they shouldn't. In the same system, with no changes, file -i /path/to/the/same/file returned the correct MIME information for the file. Downgrading to PHP 7.2.13 in the same system, with no other changes, same php.ini file parameters, fixed the problem. /etc/magic.mime has been empty throughout the whole test. Test script: --------------- <?php echo mime_content_type("/full/path/to/examplevideo.mkv"); Expected result: ---------------- video/x-matroska; charset=binary Actual result: -------------- application/octet-stream