-
Bug
-
Resolution: Fixed
-
Blocker
-
2.7.19, 2.9.9, 3.1.5, 3.2.2, 3.3
-
MOODLE_27_STABLE, MOODLE_29_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_27_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-58746-master -
There is 1 use of fileinfo/finfo @
$ ag 'new finfo'
|
lib/filestorage/file_storage.php
|
2105: $finfo = new finfo(FILEINFO_MIME_TYPE);
|
And overall, it's not problematic... but because of Windows that does not come with it enabled by default and requires action:
http://php.net/manual/en/fileinfo.installation.php
This is leading to > 100 errors in phpunit under windows (standard 7.0.9 download from php downloads site) with error: Error: Class 'finfo' not found
So... ONE OF:
1) of we kill the finfo use above (it used to be optional before 3.3 using class_exists().
2) or we make it a environmental requirement and document it everywhere.
Ciao