mime_magic extension is deprecated
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Jul 2009 19:34:16 +0000 (13:34 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 6 Jul 2009 19:34:16 +0000 (13:34 -0600)
framework/Mime/lib/Horde/Mime/Magic.php
framework/Mime/package.xml

index 80ff10a..65c5b26 100644 (file)
@@ -151,7 +151,6 @@ class Horde_Mime_Magic
      */
     static public function analyzeFile($path, $magic_db = null)
     {
-        /* If the PHP Mimetype extension is available, use that. */
         if (Horde_Util::extensionExists('fileinfo')) {
             $res = empty($magic_db)
                 ? @finfo_open(FILEINFO_MIME)
@@ -174,10 +173,6 @@ class Horde_Mime_Magic
             }
         }
 
-        if (Horde_Util::extensionExists('mime_magic')) {
-            return trim(mime_content_type($path));
-        }
-
         return false;
     }
 
index c23b62c..d3032df 100644 (file)
@@ -31,7 +31,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
   <api>alpha</api>
  </stability>
  <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes> * Use Gnumeric to display MS Excel documents.
+ <notes>* Remove support for deprecated mime_magic module.
+ * Use Gnumeric to display MS Excel documents.
  * Use AbiWord to display MS Word documents (Request #8011).
  * Add support for decoding IDN (RFC 3490) names (Request #5836).
  * Initial package.</notes>