From 76efa7dc77972bcf34d984d1f213b5d706ba58c9 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 26 Nov 2019 11:54:13 +0100 Subject: [PATCH] Add php exif extension requirement. --- documentation/installation_guide.html | 34 +++++++++++++-------------- main/inc/lib/diagnoser.lib.php | 10 ++++++++ main/install/install.lib.php | 7 ++++-- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/documentation/installation_guide.html b/documentation/installation_guide.html index 8a9c6194ca..a3ce780024 100755 --- a/documentation/installation_guide.html +++ b/documentation/installation_guide.html @@ -277,30 +277,28 @@ date.timezone = 'America/New_York'

Note: PHP 5.3.9 introduces a new setting "max_input_vars", which limits the number of elements you can send in one single form. If you are dealing with numerous users or very long learning paths (many items), make sure you set this setting higher than its default value of 1000.

BSD and CentOS users: these php libraries have to be included during the PHP installation (php5 might have to be replaced by php in some instances):

-

You might also add the following php modules and packages:

- -

3. Upgrade

diff --git a/main/inc/lib/diagnoser.lib.php b/main/inc/lib/diagnoser.lib.php index ec96cb1bf5..3e2a59d2a5 100755 --- a/main/inc/lib/diagnoser.lib.php +++ b/main/inc/lib/diagnoser.lib.php @@ -597,6 +597,16 @@ class Diagnoser 'expected' => 2, 'comment' => get_lang('This extension should be loaded.'), ], + 'exif' => [ + 'link' => 'http://www.php.net/exif', + 'expected' => 1, + 'comment' => get_lang('This extension should be loaded.'), + ], + 'mbstring' => [ + 'link' => 'http://www.php.net/mbstring', + 'expected' => 1, + 'comment' => get_lang('This extension should be loaded.'), + ], ]; foreach ($extensions as $extension => $data) { diff --git a/main/install/install.lib.php b/main/install/install.lib.php index d53faf47a5..9f1921dbdf 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -835,11 +835,14 @@ function display_requirements( cURL'.get_lang('Support').' '.checkExtension('curl', get_lang('Yes'), get_lang('No')).' - - Multibyte string '.get_lang('Support').' ('.get_lang('Optional').') + Multibyte string '.get_lang('Support').' '.checkExtension('mbstring', get_lang('Yes'), get_lang('MBString extension not available'), true).' + + Exif '.get_lang('Support').' + '.checkExtension('exif', get_lang('Yes'), get_lang('Exif extension not available'), true).' + Zend OpCache '.get_lang('Support').' ('.get_lang('Optional').') '.checkExtension('Zend OPcache', get_lang('Yes'), get_lang('No'), true, 'opcache.enable').'