Bug #77990 [NEW]: The mime should be image/x-ms-bmp, not image/bmp in getimagesize function

From: Date: Wed, 08 May 2019 08:55:08 +0000
Subject: Bug #77990 [NEW]: The mime should be image/x-ms-bmp, not image/bmp in getimagesize function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220768@lists.php.net to get a copy of this message
From: peter279k at gmail dot com Operating system: Ubuntu 16.04.6 LTS PHP version: 7.3.5 Package: Output Control Bug Type: Bug Bug description:The mime should be image/x-ms-bmp, not image/bmp in getimagesize function Description: ------------ The getimagesize function mime result should be enhanced. The mime content type should be image/x-ms-bmp, not image/bmp. Test script: --------------- <?php echo mime_content_type('php.bmp') . "\n"; echo getimagesize('php.bmp')['mime'] . "\n"; Expected result: ---------------- image/x-ms-bmp image/x-ms-bmp Actual result: -------------- image/x-ms-bmp image/bmp -- Edit bug report at https://bugs.php.net/bug.php?id=77990&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77990&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77990&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77990&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77990&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77990&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77990&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77990&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77990&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77990&r=support Expected behavior: https://bugs.php.net/fix.php?id=77990&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77990&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77990&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77990&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77990&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77990&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77990&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77990&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77990&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77990&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77990&r=mysqlcfg

« previous php.bugs (#220768) next »