summaryrefslogtreecommitdiff
path: root/ext/standard/image.c
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2006-06-25 21:06:39 +0000
committerHannes Magnusson <bjori@php.net>2006-06-25 21:06:39 +0000
commit7b6bf33b03a118aadb78444b1759cabf2a80a154 (patch)
tree46033ce76a61bd08ceaeefa066c06ec0474163fe /ext/standard/image.c
parent97062cade9124f9d6a4d577b71700f0a80d66a68 (diff)
downloadphp-git-7b6bf33b03a118aadb78444b1759cabf2a80a154.tar.gz
MFH: image_type_to_mime_type()
Diffstat (limited to 'ext/standard/image.c')
-rw-r--r--ext/standard/image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 9cb94fbc6e..b7c06a289e 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -1165,6 +1165,10 @@ PHP_FUNCTION(image_type_to_extension)
RETURN_STRING(".jpc" + !inc_dot, 1);
case IMAGE_FILETYPE_JP2:
RETURN_STRING(".jp2" + !inc_dot, 1);
+ case IMAGE_FILETYPE_JPX:
+ RETURN_STRING(".jpx" + !inc_dot, 1);
+ case IMAGE_FILETYPE_JB2:
+ RETURN_STRING(".jb2" + !inc_dot, 1);
case IMAGE_FILETYPE_XBM:
RETURN_STRING(".xbm" + !inc_dot, 1);
}