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

From: Date: Wed, 26 Dec 2018 22:57:23 +0000
Subject: Bug #77346 [Opn->Ver]: webm files incorrectly detected as application/octet-stream
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218631@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77346&edit=1 ID: 77346 Updated by: cmb@php.net Reported by: kieran at miami-nice dot co dot uk Summary: webm files incorrectly detected as application/octet-stream -Status: Open +Status: Verified Type: Bug Package: Filesystem function related PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: This regression has been introduced when porting libmagic 5.33[1]. [1] <http://git.php.net/?p=php-src.git;a=commit;h=e2182a1ba7cdd3c915cf29cd8367a6e02a0c10c8> Previous Comments: ------------------------------------------------------------------------ [2018-12-26 14:31:06] kieran at miami-nice dot co dot uk 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 this bug report at https://bugs.php.net/bug.php?id=77346&edit=1

« previous php.bugs (#218631) next »