Skip to content

Commit 9193334

Browse files
committed
libxml - compare against loaded version
* if the compiled in version is older than the loaded version Nextcloud doesn't work * uses the loaded libxml version to check against fixes #205
1 parent a61736c commit 9193334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/legacy/util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ public static function checkServer(\OCP\IConfig $config) {
833833
}
834834

835835
if(function_exists('xml_parser_create') &&
836-
version_compare('2.7.0', LIBXML_DOTTED_VERSION) === 1) {
836+
LIBXML_LOADED_VERSION < 20700 ) {
837837
$errors[] = array(
838838
'error' => $l->t('libxml2 2.7.0 is at least required. Currently %s is installed.', [LIBXML_DOTTED_VERSION]),
839839
'hint' => $l->t('To fix this issue update your libxml2 version and restart your web server.')

0 commit comments

Comments
 (0)