Skip to content

Commit

Permalink
MINOR Ensure finfo class exists in installer checks, we need it for MIME
Browse files Browse the repository at this point in the history
type detection of files.
  • Loading branch information
halkyon committed May 11, 2012
1 parent 0fe0d87 commit 20a51d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/install/install.php5
Original file line number Diff line number Diff line change
Expand Up @@ -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."));
Expand Down

0 comments on commit 20a51d6

Please sign in to comment.