svn: /phpdoc/en/trunk/reference/phar/Phar/ webPhar.xml

From: Date: Tue, 16 Aug 2011 17:41:10 +0000
Subject: svn: /phpdoc/en/trunk/reference/phar/Phar/ webPhar.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8629@lists.php.net to get a copy of this message
cweiske Tue, 16 Aug 2011 17:41:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=315034 Log: - Fix default mode for php and phps files - Talk about adding an empty array instead of defining one yourself Changed paths: U phpdoc/en/trunk/reference/phar/Phar/webPhar.xml Modified: phpdoc/en/trunk/reference/phar/Phar/webPhar.xml =================================================================== --- phpdoc/en/trunk/reference/phar/Phar/webPhar.xml 2011-08-16 15:12:32 UTC (rev 315033) +++ phpdoc/en/trunk/reference/phar/Phar/webPhar.xml 2011-08-16 17:41:10 UTC (rev 315034) @@ -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 @@ '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',

« previous php.doc.cvs (#8629) next »