<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Installation</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="fileinfo.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="fileinfo.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="fileinfo.installation" class="section"> <h2 class="title">Installation</h2> <p class="para"> This extension is enabled by default as of PHP 5.3.0. Before this time, fileinfo was a PECL extension but is no longer maintained there. However, versions prior to 5.3+ may use the <a href="http://pecl.php.net/package/fileinfo" class="link external">» discontinued PECL extension</a>. </p> <p class="para"> Windows users must include the bundled <var class="filename">php_fileinfo.dll</var> <acronym title="Dynamic Link Library">DLL</acronym> file in <var class="filename">php.ini</var> to enable this extension. </p> <p class="para"> The libmagic library is bundled with PHP, but includes PHP specific changes. A patch against libmagic named <var class="filename">libmagic.patch</var> is maintained and may be found within the PHP fileinfo extensions source. </p> <p class="para"> <table class="doctable table"> <caption><strong>Upgrade history of the bundled libmagic library</strong></caption> <thead> <tr> <th>PHP Version</th> <th>Updated libmagic Version</th> <th>Notes</th> </tr> </thead> <tbody class="tbody"> <tr> <td>5.3.2</td> <td>5.03</td> <td class="empty"> </td> </tr> <tr> <td>5.3.0</td> <td>5.02</td> <td class="empty"> </td> </tr> </tbody> </table> </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="fileinfo.requirements.html">Requirements</a></div> <div class="next" style="text-align: right; float: right;"><a href="fileinfo.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="fileinfo.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>