Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-13 00:13:05 +0300
committerLukas Reschke <lukas@owncloud.com>2016-03-16 19:13:13 +0300
commitdbcb0376397a3b45d48427d12eb3de10d3c21c29 (patch)
tree194fd0f9dd35497ea01e42af0fc6d3f836c290c7 /lib
parentadbc5bbd1f71c2b2aeb4486bd46da4ae206c2bbf (diff)
Require at least libxml 2.7.0
Fixes https://github.com/owncloud/core/issues/23168
Diffstat (limited to 'lib')
-rw-r--r--lib/private/util.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 6f53be8446a..88d78ad83c6 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -828,6 +828,14 @@ class OC_Util {
);
}
+ if(function_exists('xml_parser_create') &&
+ version_compare('2.7.0', LIBXML_DOTTED_VERSION) === 1) {
+ $errors[] = array(
+ 'error' => $l->t('libxml2 2.7.0 is at least required. Currently %s is installed.', [LIBXML_DOTTED_VERSION]),
+ 'hint' => $l->t('To fix this issue update your libxml2 version and restart your web server.')
+ );
+ }
+
if (!self::isAnnotationsWorking()) {
$errors[] = array(
'error' => $l->t('PHP is apparently set up to strip inline doc blocks. This will make several core apps inaccessible.'),