summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-16 13:11:59 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-16 13:11:59 +0100
commit5f00724e5b5a0fd1c474af035372934b242aa7c8 (patch)
tree3b266b1275d398af6e3858424e7ec07cd9f4c3a4 /lib/private
parent225eebd8f91c19666e453527ebfa457ee10a811a (diff)
parent42a70ed4829b5db24389f263d5f6f1bceade1de3 (diff)
downloadnextcloud-server-5f00724e5b5a0fd1c474af035372934b242aa7c8.tar.gz
nextcloud-server-5f00724e5b5a0fd1c474af035372934b242aa7c8.zip
Merge pull request #23189 from owncloud/require-at-least-libxml-2-7-0
Require at least libxml 2.7.0
Diffstat (limited to 'lib/private')
-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.'),