mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
MFH Fix bug #47359 - Use the official unofficial mimetype for bmp files, this stops IE from getting confused.
This commit is contained in:
parent
df199c2e75
commit
bb2283bf4e
@ -49,7 +49,7 @@ string(10) "image/jpeg"
|
||||
string(9) "image/png"
|
||||
string(29) "application/x-shockwave-flash"
|
||||
string(9) "image/psd"
|
||||
string(9) "image/bmp"
|
||||
string(14) "image/x-ms-bmp"
|
||||
string(10) "image/tiff"
|
||||
string(10) "image/tiff"
|
||||
string(24) "application/octet-stream"
|
||||
|
@ -39,7 +39,7 @@ string\(29\) "application\/x-shockwave-flash"
|
||||
string\(9\) "image\/psd"
|
||||
|
||||
-- Iteration 6 --
|
||||
string\(9\) "image\/bmp"
|
||||
string\(14\) "image\/x-ms-bmp"
|
||||
|
||||
-- Iteration 7 --
|
||||
string\(10\) "image\/tiff"
|
||||
|
@ -1133,7 +1133,7 @@ PHPAPI char * php_image_type_to_mime_type(int image_type)
|
||||
case IMAGE_FILETYPE_PSD:
|
||||
return "image/psd";
|
||||
case IMAGE_FILETYPE_BMP:
|
||||
return "image/bmp";
|
||||
return "image/x-ms-bmp";
|
||||
case IMAGE_FILETYPE_TIFF_II:
|
||||
case IMAGE_FILETYPE_TIFF_MM:
|
||||
return "image/tiff";
|
||||
|
@ -37,7 +37,7 @@ array(11) {
|
||||
["bits"]=>
|
||||
int(24)
|
||||
["mime"]=>
|
||||
string(9) "image/bmp"
|
||||
string(14) "image/x-ms-bmp"
|
||||
}
|
||||
["test1pix.jp2"]=>
|
||||
array(7) {
|
||||
|
@ -138,7 +138,7 @@ array(6) {
|
||||
["bits"]=>
|
||||
int(24)
|
||||
["mime"]=>
|
||||
string(9) "image/bmp"
|
||||
string(14) "image/x-ms-bmp"
|
||||
}
|
||||
array(0) {
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ image_type_to_mime_type()
|
||||
--EXPECT--
|
||||
array(11) {
|
||||
["test1pix.bmp"]=>
|
||||
string(9) "image/bmp"
|
||||
string(14) "image/x-ms-bmp"
|
||||
["test1pix.jp2"]=>
|
||||
string(9) "image/jp2"
|
||||
["test1pix.jpc"]=>
|
||||
|
@ -39,7 +39,7 @@ string\(29\) "application\/x-shockwave-flash"
|
||||
string\(9\) "image\/psd"
|
||||
|
||||
-- Iteration 6 --
|
||||
string\(9\) "image\/bmp"
|
||||
string\(14\) "image\/x-ms-bmp"
|
||||
|
||||
-- Iteration 7 --
|
||||
string\(10\) "image\/tiff"
|
||||
|
Loading…
Reference in New Issue
Block a user