@@ -121,10 +121,14 @@ private function generateMimeTypesFile($outFile, $content)
121121 * Its content is generated from the apache http mime.types file.
122122 * https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
123123 * This file has been placed in the public domain for unlimited redistribution.
124+ *
125+ * All extra changes made to this file must be comitted to /build/controllers/MimeTypeController.php
126+ * otherwise they will be lost on next build.
124127 */
125128\$mimeTypes = $ array;
126129
127- if (PHP_VERSION_ID >= 80100) {
130+ # fix for bundled libmagic bug, see also https://github.com/yiisoft/yii2/issues/19925
131+ if ((PHP_VERSION_ID >= 80100 && PHP_VERSION_ID < 80122) || (PHP_VERSION_ID >= 80200 && PHP_VERSION_ID < 80209)) {
128132 \$mimeTypes = array_replace( \$mimeTypes, array('xz' => 'application/octet-stream'));
129133}
130134
@@ -148,6 +152,9 @@ private function generateMimeAliasesFile($outFile)
148152 * MIME aliases.
149153 *
150154 * This file contains aliases for MIME types.
155+ *
156+ * All extra changes made to this file must be comitted to /build/controllers/MimeTypeController.php
157+ * otherwise they will be lost on next build.
151158 */
152159return $ array;
153160
@@ -209,6 +216,9 @@ private function generateMimeExtensionsFile($outFile, $content)
209216 * Its content is generated from the apache http mime.types file.
210217 * https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
211218 * This file has been placed in the public domain for unlimited redistribution.
219+ *
220+ * All extra changes made to this file must be comitted to /build/controllers/MimeTypeController.php
221+ * otherwise they will be lost on next build.
212222 */
213223return $ array;
214224
0 commit comments