From 42a70ed4829b5db24389f263d5f6f1bceade1de3 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sat, 12 Mar 2016 22:13:05 +0100 Subject: [PATCH] Require at least libxml 2.7.0 Fixes https://github.com/owncloud/core/issues/23168 --- lib/private/util.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/private/util.php b/lib/private/util.php index 6f53be8446..88d78ad83c 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.'),