Skip to content

Commit d3c8652

Browse files
Ayeshdevnexen
authored andcommitted
Update mime-db from 1.45.0 to 1.52.0
Updates the the mime types supported by the built-in PHP server to match the mime types available from upstream `mime-db` database. This updates the `mime-db` version from `v1.45.0` (released in 2020 Sep) to `v1.52.0` (latest, released in 2022 Feb), and syncs the mime types by running the mime type ingestion script.
1 parent 5174ee2 commit d3c8652

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.0beta1
44

5+
- CLI:
6+
- Updated the mime-type table for the builtin-server. (Ayesh Karunaratne)
7+
58
- FPM:
69
- Added listen.setfib pool option to set route FIB on FreeBSD. (David Carlier)
710

sapi/cli/generate_mime_type_map.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

88
// See if we can actually load it.
99
$data = @file_get_contents($source);

sapi/cli/mime_type_map.h

+20-3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
4949
{ "aep", "application/vnd.audiograph" },
5050
{ "afm", "application/x-font-type1" },
5151
{ "afp", "application/vnd.ibm.modcap" },
52+
{ "age", "application/vnd.age" },
5253
{ "ahead", "application/vnd.ahead.space" },
5354
{ "ai", "application/postscript" },
5455
{ "aif", "audio/x-aiff" },
@@ -57,14 +58,15 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
5758
{ "air", "application/vnd.adobe.air-application-installer-package+zip" },
5859
{ "ait", "application/vnd.dvb.ait" },
5960
{ "ami", "application/vnd.amiga.ami" },
61+
{ "amr", "audio/amr" },
6062
{ "apk", "application/vnd.android.package-archive" },
6163
{ "apng", "image/apng" },
6264
{ "appcache", "text/cache-manifest" },
6365
{ "application", "application/x-ms-application" },
6466
{ "apr", "application/vnd.lotus-approach" },
6567
{ "arc", "application/x-freearc" },
6668
{ "arj", "application/x-arj" },
67-
{ "asc", "application/pgp-signature" },
69+
{ "asc", "application/pgp-keys" },
6870
{ "asf", "video/x-ms-asf" },
6971
{ "asm", "text/x-asm" },
7072
{ "aso", "application/vnd.accpac.simply.aso" },
@@ -76,6 +78,8 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
7678
{ "atomsvc", "application/atomsvc+xml" },
7779
{ "atx", "application/vnd.antix.game-component" },
7880
{ "au", "audio/basic" },
81+
{ "avci", "image/avci" },
82+
{ "avcs", "image/avcs" },
7983
{ "avi", "video/x-msvideo" },
8084
{ "avif", "image/avif" },
8185
{ "aw", "application/applixware" },
@@ -168,6 +172,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
168172
{ "com", "application/x-msdownload" },
169173
{ "conf", "text/plain" },
170174
{ "cpio", "application/x-cpio" },
175+
{ "cpl", "application/cpl+xml" },
171176
{ "cpp", "text/x-c" },
172177
{ "cpt", "application/mac-compactpro" },
173178
{ "crd", "application/x-mscardfile" },
@@ -273,6 +278,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
273278
{ "evy", "application/x-envoy" },
274279
{ "exe", "application/x-msdos-program" },
275280
{ "exi", "application/exi" },
281+
{ "exp", "application/express" },
276282
{ "exr", "image/aces" },
277283
{ "ext", "application/vnd.novadigm.ext" },
278284
{ "ez", "application/andrew-inset" },
@@ -327,6 +333,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
327333
{ "gca", "application/x-gca-compressed" },
328334
{ "gdl", "model/vnd.gdl" },
329335
{ "gdoc", "application/vnd.google-apps.document" },
336+
{ "ged", "text/vnd.familysearch.gedcom" },
330337
{ "geo", "application/vnd.dynageo" },
331338
{ "geojson", "application/geo+json" },
332339
{ "gex", "application/vnd.geometry-explorer" },
@@ -516,6 +523,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
516523
{ "m3u8", "application/vnd.apple.mpegurl" },
517524
{ "m4a", "audio/mp4" },
518525
{ "m4p", "application/mp4" },
526+
{ "m4s", "video/iso.segment" },
519527
{ "m4u", "video/vnd.mpegurl" },
520528
{ "m4v", "video/x-m4v" },
521529
{ "ma", "application/mathematica" },
@@ -584,13 +592,14 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
584592
{ "mpd", "application/dash+xml" },
585593
{ "mpe", "video/mpeg" },
586594
{ "mpeg", "video/mpeg" },
595+
{ "mpf", "application/media-policy-dataset+xml" },
587596
{ "mpg", "video/mpeg" },
588597
{ "mpg4", "video/mp4" },
589598
{ "mpga", "audio/mpeg" },
590599
{ "mpkg", "application/vnd.apple.installer+xml" },
591600
{ "mpm", "application/vnd.blueice.multipass" },
592601
{ "mpn", "application/vnd.mophun.application" },
593-
{ "mpp", "application/vnd.ms-project" },
602+
{ "mpp", "application/dash-patch+xml" },
594603
{ "mpt", "application/vnd.ms-project" },
595604
{ "mpy", "application/vnd.ibm.minipay" },
596605
{ "mqy", "application/vnd.mobius.mqy" },
@@ -614,6 +623,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
614623
{ "musd", "application/mmt-usd+xml" },
615624
{ "musicxml", "application/vnd.recordare.musicxml+xml" },
616625
{ "mvb", "application/x-msmediaview" },
626+
{ "mvt", "application/vnd.mapbox-vector-tile" },
617627
{ "mwf", "application/vnd.mfer" },
618628
{ "mxf", "application/mxf" },
619629
{ "mxl", "application/vnd.recordare.musicxml" },
@@ -673,6 +683,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
673683
{ "opf", "application/oebps-package+xml" },
674684
{ "opml", "text/x-opml" },
675685
{ "oprc", "application/vnd.palm" },
686+
{ "opus", "audio/ogg" },
676687
{ "org", "application/vnd.lotus-organizer" },
677688
{ "osf", "application/vnd.yamaha.openscoreformat" },
678689
{ "osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml" },
@@ -917,6 +928,9 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
917928
{ "sti", "application/vnd.sun.xml.impress.template" },
918929
{ "stk", "application/hyperstudio" },
919930
{ "stl", "model/stl" },
931+
{ "stpx", "model/step+xml" },
932+
{ "stpxz", "model/step-xml+zip" },
933+
{ "stpz", "model/step+zip" },
920934
{ "str", "application/vnd.pg.format" },
921935
{ "stw", "application/vnd.sun.xml.writer.template" },
922936
{ "styl", "text/stylus" },
@@ -972,6 +986,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
972986
{ "tpt", "application/vnd.trid.tpt" },
973987
{ "tr", "text/troff" },
974988
{ "tra", "application/vnd.trueapp" },
989+
{ "trig", "application/trig" },
975990
{ "trm", "application/x-msterminal" },
976991
{ "ts", "video/mp2t" },
977992
{ "tsd", "application/timestamped-data" },
@@ -1042,6 +1057,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
10421057
{ "vcs", "text/x-vcalendar" },
10431058
{ "vcx", "application/vnd.vcx" },
10441059
{ "vdi", "application/x-virtualbox-vdi" },
1060+
{ "vds", "model/vnd.sap.vds" },
10451061
{ "vhd", "application/x-virtualbox-vhd" },
10461062
{ "vis", "application/vnd.visionary" },
10471063
{ "viv", "video/vnd.vivo" },
@@ -1079,6 +1095,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
10791095
{ "webp", "image/webp" },
10801096
{ "wg", "application/vnd.pmi.widget" },
10811097
{ "wgt", "application/widget" },
1098+
{ "wif", "application/watcherinfo+xml" },
10821099
{ "wks", "application/vnd.ms-works" },
10831100
{ "wm", "video/x-ms-wm" },
10841101
{ "wma", "audio/x-ms-wma" },
@@ -1122,7 +1139,7 @@ static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
11221139
{ "xbm", "image/x-xbitmap" },
11231140
{ "xca", "application/xcap-caps+xml" },
11241141
{ "xcs", "application/calendar+xml" },
1125-
{ "xdf", "application/mrb-consumer+xml" },
1142+
{ "xdf", "application/xcap-diff+xml" },
11261143
{ "xdm", "application/vnd.syncml.dm+xml" },
11271144
{ "xdp", "application/vnd.adobe.xdp+xml" },
11281145
{ "xdssc", "application/dssc+xml" },

0 commit comments

Comments
 (0)