Bug #77346 [NEW]: webm files incorrectly detected as application/octet-stream

From: Date: Wed, 26 Dec 2018 14:31:06 +0000
Subject: Bug #77346 [NEW]: webm files incorrectly detected as application/octet-stream
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218619@lists.php.net to get a copy of this message
From: kieran at miami-nice dot co dot uk Operating system: PHP version: 7.3.0 Package: Filesystem function related Bug Type: Bug Bug description:webm files incorrectly detected as application/octet-stream Description: ------------ PHP 7.3.0 is returning different output in some cases for mime_content_type lookups. I believe it comes from changes in https://bugs.php.net/bug.php?id=77095 or https://github.com/php/php-src/search?q=magic+data&type=Commits Test script: --------------- https://hastebin.com/edoyopagaf.xml Expected result: ---------------- $ php7.3 test.php video/webm Actual result: -------------- $ php7.3 -v PHP 7.3.0-2+0~20181217092615.24+jessie~1.gbp54e52f (cli) (built: Dec 17 2018 17:27:47) ( NTS ) $ php7.3 test.php application/octet-stream $ php7.2 -v PHP 7.2.11-2+0~20181015120510.9+jessie~1.gbp8105e0 (cli) (built: Oct 16 2018 03:39:58) ( NTS ) $ php7.2 test.php video/webm $ php7.1 -v PHP 7.1.23-2+0~20181017082658.9+jessie~1.gbpab65a0 (cli) (built: Oct 17 2018 12:02:25) ( NTS ) $ php7.1 test.php video/webm -- Edit bug report at https://bugs.php.net/bug.php?id=77346&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77346&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77346&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77346&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77346&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77346&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77346&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77346&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77346&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77346&r=support Expected behavior: https://bugs.php.net/fix.php?id=77346&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77346&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77346&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77346&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77346&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77346&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77346&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77346&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77346&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77346&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77346&r=mysqlcfg

« previous php.bugs (#218619) next »