diff --git a/reference/phar/Phar/webPhar.xml b/reference/phar/Phar/webPhar.xml index a4d580dba1..326031c508 100644 --- a/reference/phar/Phar/webPhar.xml +++ b/reference/phar/Phar/webPhar.xml @@ -67,13 +67,14 @@ mimetypes - 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: 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',