Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sapi/cli/generate_mime_type_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Check if we are being given a mime.types file or if we should use the
// default URL.
$source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.45.0/db.json';
$source = count($argv) > 1 ? $argv[1] : 'https://cdn.jsdelivr.net/gh/jshttp/mime-db@v1.52.0/db.json';

// See if we can actually load it.
$data = @file_get_contents($source);
Expand Down
23 changes: 20 additions & 3 deletions sapi/cli/mime_type_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "aep", "application/vnd.audiograph" },
{ "afm", "application/x-font-type1" },
{ "afp", "application/vnd.ibm.modcap" },
{ "age", "application/vnd.age" },
{ "ahead", "application/vnd.ahead.space" },
{ "ai", "application/postscript" },
{ "aif", "audio/x-aiff" },
Expand All @@ -57,14 +58,15 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "air", "application/vnd.adobe.air-application-installer-package+zip" },
{ "ait", "application/vnd.dvb.ait" },
{ "ami", "application/vnd.amiga.ami" },
{ "amr", "audio/amr" },
{ "apk", "application/vnd.android.package-archive" },
{ "apng", "image/apng" },
{ "appcache", "text/cache-manifest" },
{ "application", "application/x-ms-application" },
{ "apr", "application/vnd.lotus-approach" },
{ "arc", "application/x-freearc" },
{ "arj", "application/x-arj" },
{ "asc", "application/pgp-signature" },
{ "asc", "application/pgp-keys" },
{ "asf", "video/x-ms-asf" },
{ "asm", "text/x-asm" },
{ "aso", "application/vnd.accpac.simply.aso" },
Expand All @@ -76,6 +78,8 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "atomsvc", "application/atomsvc+xml" },
{ "atx", "application/vnd.antix.game-component" },
{ "au", "audio/basic" },
{ "avci", "image/avci" },
{ "avcs", "image/avcs" },
{ "avi", "video/x-msvideo" },
{ "avif", "image/avif" },
{ "aw", "application/applixware" },
Expand Down Expand Up @@ -168,6 +172,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "com", "application/x-msdownload" },
{ "conf", "text/plain" },
{ "cpio", "application/x-cpio" },
{ "cpl", "application/cpl+xml" },
{ "cpp", "text/x-c" },
{ "cpt", "application/mac-compactpro" },
{ "crd", "application/x-mscardfile" },
Expand Down Expand Up @@ -273,6 +278,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "evy", "application/x-envoy" },
{ "exe", "application/x-msdos-program" },
{ "exi", "application/exi" },
{ "exp", "application/express" },
{ "exr", "image/aces" },
{ "ext", "application/vnd.novadigm.ext" },
{ "ez", "application/andrew-inset" },
Expand Down Expand Up @@ -327,6 +333,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "gca", "application/x-gca-compressed" },
{ "gdl", "model/vnd.gdl" },
{ "gdoc", "application/vnd.google-apps.document" },
{ "ged", "text/vnd.familysearch.gedcom" },
{ "geo", "application/vnd.dynageo" },
{ "geojson", "application/geo+json" },
{ "gex", "application/vnd.geometry-explorer" },
Expand Down Expand Up @@ -516,6 +523,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "m3u8", "application/vnd.apple.mpegurl" },
{ "m4a", "audio/mp4" },
{ "m4p", "application/mp4" },
{ "m4s", "video/iso.segment" },
{ "m4u", "video/vnd.mpegurl" },
{ "m4v", "video/x-m4v" },
{ "ma", "application/mathematica" },
Expand Down Expand Up @@ -584,13 +592,14 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "mpd", "application/dash+xml" },
{ "mpe", "video/mpeg" },
{ "mpeg", "video/mpeg" },
{ "mpf", "application/media-policy-dataset+xml" },
{ "mpg", "video/mpeg" },
{ "mpg4", "video/mp4" },
{ "mpga", "audio/mpeg" },
{ "mpkg", "application/vnd.apple.installer+xml" },
{ "mpm", "application/vnd.blueice.multipass" },
{ "mpn", "application/vnd.mophun.application" },
{ "mpp", "application/vnd.ms-project" },
{ "mpp", "application/dash-patch+xml" },
{ "mpt", "application/vnd.ms-project" },
{ "mpy", "application/vnd.ibm.minipay" },
{ "mqy", "application/vnd.mobius.mqy" },
Expand All @@ -614,6 +623,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "musd", "application/mmt-usd+xml" },
{ "musicxml", "application/vnd.recordare.musicxml+xml" },
{ "mvb", "application/x-msmediaview" },
{ "mvt", "application/vnd.mapbox-vector-tile" },
{ "mwf", "application/vnd.mfer" },
{ "mxf", "application/mxf" },
{ "mxl", "application/vnd.recordare.musicxml" },
Expand Down Expand Up @@ -673,6 +683,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "opf", "application/oebps-package+xml" },
{ "opml", "text/x-opml" },
{ "oprc", "application/vnd.palm" },
{ "opus", "audio/ogg" },
{ "org", "application/vnd.lotus-organizer" },
{ "osf", "application/vnd.yamaha.openscoreformat" },
{ "osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml" },
Expand Down Expand Up @@ -917,6 +928,9 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "sti", "application/vnd.sun.xml.impress.template" },
{ "stk", "application/hyperstudio" },
{ "stl", "model/stl" },
{ "stpx", "model/step+xml" },
{ "stpxz", "model/step-xml+zip" },
{ "stpz", "model/step+zip" },
{ "str", "application/vnd.pg.format" },
{ "stw", "application/vnd.sun.xml.writer.template" },
{ "styl", "text/stylus" },
Expand Down Expand Up @@ -972,6 +986,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "tpt", "application/vnd.trid.tpt" },
{ "tr", "text/troff" },
{ "tra", "application/vnd.trueapp" },
{ "trig", "application/trig" },
{ "trm", "application/x-msterminal" },
{ "ts", "video/mp2t" },
{ "tsd", "application/timestamped-data" },
Expand Down Expand Up @@ -1042,6 +1057,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "vcs", "text/x-vcalendar" },
{ "vcx", "application/vnd.vcx" },
{ "vdi", "application/x-virtualbox-vdi" },
{ "vds", "model/vnd.sap.vds" },
{ "vhd", "application/x-virtualbox-vhd" },
{ "vis", "application/vnd.visionary" },
{ "viv", "video/vnd.vivo" },
Expand Down Expand Up @@ -1079,6 +1095,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "webp", "image/webp" },
{ "wg", "application/vnd.pmi.widget" },
{ "wgt", "application/widget" },
{ "wif", "application/watcherinfo+xml" },
{ "wks", "application/vnd.ms-works" },
{ "wm", "video/x-ms-wm" },
{ "wma", "audio/x-ms-wma" },
Expand Down Expand Up @@ -1122,7 +1139,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
{ "xbm", "image/x-xbitmap" },
{ "xca", "application/xcap-caps+xml" },
{ "xcs", "application/calendar+xml" },
{ "xdf", "application/mrb-consumer+xml" },
{ "xdf", "application/xcap-diff+xml" },
{ "xdm", "application/vnd.syncml.dm+xml" },
{ "xdp", "application/vnd.adobe.xdp+xml" },
{ "xdssc", "application/dssc+xml" },
Expand Down