Browse files

MINOR Ensure finfo class exists in installer checks, we need it for MIME

type detection of files.
  • Loading branch information...
halkyon committed May 11, 2012
1 parent 0fe0d87 commit 20a51d6572213b15cb08da9ab68b674af7c8d46f
Showing with 3 additions and 0 deletions.
  1. +3 −0 dev/install/install.php5
@@ -409,6 +409,9 @@ class InstallRequirements {
$this->requireServerVariables(array('SCRIPT_NAME','HTTP_HOST','SCRIPT_FILENAME'), array("Webserver config", "Recognised webserver", "You seem to be using an unsupported webserver. The server variables SCRIPT_NAME, HTTP_HOST, SCRIPT_FILENAME need to be set."));
+ // check for fileinfo extension, this gets used for MIME type detection
+ $this->requireClass('finfo', array('PHP Configuration', 'fileinfo support', 'fileinfo support not included in PHP.'));
// Check for GD support
if(!$this->requireFunction("imagecreatetruecolor", array("PHP Configuration", "GD2 support", "PHP must have GD version 2."))) {
$this->requireFunction("imagecreate", array("PHP Configuration", "GD2 support", "GD support for PHP not included."));

0 comments on commit 20a51d6

Please sign in to comment.