PHPVersionCheck: Add 'fileinfo' extension
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 9 Aug 2017 18:54:01 +0000 (20:54 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 9 Aug 2017 18:54:01 +0000 (20:54 +0200)
We call mime_content_type() in a couple of important places with no
fallback.

Bug: T172643
Change-Id: I83db8b078f8f42d02fe6024ec9895da0688f1c91

includes/PHPVersionCheck.php

index 5a440c4..c8872d2 100644 (file)
@@ -36,6 +36,7 @@ class PHPVersionCheck {
                'ctype_digit' => 'ctype',
                'json_decode' => 'json',
                'iconv'       => 'iconv',
+               'mime_content_type' => 'fileinfo',
        );
 
        /**