Skip to content

Commit 37bedca

Browse files
committed
add test case for heif
Signed-off-by: Benstone Zhang <[email protected]>
1 parent 9723237 commit 37bedca

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

ext/standard/basic_functions_arginfo.h

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/tests/image/image_type_to_mime_type.phpt

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ image_type_to_mime_type()
2424
var_dump($result);
2525
?>
2626
--EXPECT--
27-
array(17) {
27+
array(18) {
2828
["test-1pix.bmp"]=>
2929
string(9) "image/bmp"
3030
["test12pix.webp"]=>
@@ -59,4 +59,6 @@ array(17) {
5959
string(29) "application/x-shockwave-flash"
6060
["test4pix.tiff"]=>
6161
string(10) "image/tiff"
62+
["test4pix.heic"]=>
63+
string(10) "image/heif"
6264
}

ext/standard/tests/image/image_type_to_mime_type_basic.phpt

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ $image_types = array (
2121
IMAGETYPE_IFF,
2222
IMAGETYPE_WBMP,
2323
IMAGETYPE_JPEG2000,
24+
IMAGETYPE_HEIF,
2425
IMAGETYPE_XBM,
2526
IMAGETYPE_WEBP
2627
);
@@ -49,6 +50,7 @@ string(24) "application/octet-stream"
4950
string(9) "image/iff"
5051
string(18) "image/vnd.wap.wbmp"
5152
string(24) "application/octet-stream"
53+
string(10) "image/heif"
5254
string(9) "image/xbm"
5355
string(10) "image/webp"
5456

41.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)