summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-03-17 03:25:57 +0000
committerScott MacVicar <scottmac@php.net>2009-03-17 03:25:57 +0000
commitbb2283bf4e0ff6d9fe3438f36fbb4c703c3e16b2 (patch)
treec89cdc6c0e114901bd123dfc8782e6eefe28bfda /ext/standard
parentdf199c2e75d0f80f1e46bbf4fd54580201cff5b8 (diff)
downloadphp-git-bb2283bf4e0ff6d9fe3438f36fbb4c703c3e16b2.tar.gz
MFH Fix bug #47359 - Use the official unofficial mimetype for bmp files, this stops IE from getting confused.
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/image.c2
-rw-r--r--ext/standard/tests/image/getimagesize.phpt2
-rw-r--r--ext/standard/tests/image/getimagesize_basic.phpt2
-rw-r--r--ext/standard/tests/image/image_type_to_mime_type.phpt2
-rwxr-xr-xext/standard/tests/image/image_type_to_mime_type_variation3.phpt2
5 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 9f76de953c..cbafe00315 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -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";
diff --git a/ext/standard/tests/image/getimagesize.phpt b/ext/standard/tests/image/getimagesize.phpt
index 46003cffac..ab79c9c768 100644
--- a/ext/standard/tests/image/getimagesize.phpt
+++ b/ext/standard/tests/image/getimagesize.phpt
@@ -37,7 +37,7 @@ array(11) {
["bits"]=>
int(24)
["mime"]=>
- string(9) "image/bmp"
+ string(14) "image/x-ms-bmp"
}
["test1pix.jp2"]=>
array(7) {
diff --git a/ext/standard/tests/image/getimagesize_basic.phpt b/ext/standard/tests/image/getimagesize_basic.phpt
index 63ae334066..4d47225818 100644
--- a/ext/standard/tests/image/getimagesize_basic.phpt
+++ b/ext/standard/tests/image/getimagesize_basic.phpt
@@ -138,7 +138,7 @@ array(6) {
["bits"]=>
int(24)
["mime"]=>
- string(9) "image/bmp"
+ string(14) "image/x-ms-bmp"
}
array(0) {
}
diff --git a/ext/standard/tests/image/image_type_to_mime_type.phpt b/ext/standard/tests/image/image_type_to_mime_type.phpt
index 94aabba0b9..5d94a6fe5d 100644
--- a/ext/standard/tests/image/image_type_to_mime_type.phpt
+++ b/ext/standard/tests/image/image_type_to_mime_type.phpt
@@ -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"]=>
diff --git a/ext/standard/tests/image/image_type_to_mime_type_variation3.phpt b/ext/standard/tests/image/image_type_to_mime_type_variation3.phpt
index 5b432f4899..192f23dcee 100755
--- a/ext/standard/tests/image/image_type_to_mime_type_variation3.phpt
+++ b/ext/standard/tests/image/image_type_to_mime_type_variation3.phpt
@@ -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"