1--TEST--
2Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC
3--SKIPIF--
4<?php
5	if (!defined("IMAGETYPE_SWC") || !defined("IMAGETYPE_ICO") || !extension_loaded('zlib')) {
6		die("skip zlib extension is not available or IMAGETYPE_SWC/IMAGETYPE_ICO is not defined ");
7	}
8?>
9--FILE--
10<?php
11/* Prototype  : string image_type_to_mime_type(int imagetype)
12 * Description: Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
13 * Source code: ext/standard/image.c
14 */
15
16
17echo "*** Testing image_type_to_mime_type() : usage variations ***\n";
18
19error_reporting(E_ALL ^ E_NOTICE);
20
21var_dump( image_type_to_mime_type(IMAGETYPE_ICO) );
22var_dump( image_type_to_mime_type(IMAGETYPE_SWC) );
23?>
24===DONE===
25--EXPECT--
26*** Testing image_type_to_mime_type() : usage variations ***
27string(24) "image/vnd.microsoft.icon"
28string(29) "application/x-shockwave-flash"
29===DONE===
30