- Fix default mode for php and phps files

- Talk about adding an empty array instead of defining one yourself

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315034 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christian Weiske 2011-08-16 17:41:10 +00:00
parent 4f3e16d785
commit 8f42f2024d

View file

@ -67,13 +67,14 @@
<term><parameter>mimetypes</parameter></term>
<listitem>
<para>
An array mapping additional file extensions to MIME type. By default,
these extensions are mapped to these mime types:
An array mapping additional file extensions to MIME type.
If the default mapping is sufficient, pass an empty array.
By default, these extensions are mapped to these MIME types:
<programlisting role="php">
<![CDATA[
<?php
$mimes = array(
'phps' => 2, // pass to highlight_file()
'phps' => Phar::PHPS, // pass to highlight_file()
'c' => 'text/plain',
'cc' => 'text/plain',
'cpp' => 'text/plain',
@ -84,8 +85,8 @@ $mimes = array(
'rng' => 'text/plain',
'txt' => 'text/plain',
'xsd' => 'text/plain',
'php' => 1, // parse as PHP
'inc' => 1, // parse as PHP
'php' => Phar::PHP, // parse as PHP
'inc' => Phar::PHP, // parse as PHP
'avi' => 'video/avi',
'bmp' => 'image/bmp',
'css' => 'text/css',