Skip to content

Enhanced setup check for libxml 2.7.0 #205

@kasi45

Description

@kasi45

Nextcloud version: 9.0.50 (stable)

the loaded libxml is version 2.9.2 but nextcloud can not start.

example:

[~] # /mnt/ext/opt/apache/bin/php -i|grep libXML
libXML support => active
libXML Compiled Version => 2.6.30
libXML Loaded Version => 20902
libXML streams => enabled

https://github.com/nextcloud/server/blob/stable9/lib/private/util.php

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.')
    );
}

There is no check which version is loaded!
"LIBXML_DOTTED_VERSION" is not equal "LIBXML_LOADED_VERSION"

if i edit "/lib/private/util.php"
and change "LIBXML_DOTTED_VERSION" to "LIBXML_LOADED_VERSION" nextcloud started.

I have a Qnap NAS. There is only limited possible to install other software.
so it will be also on devices from other manufacturers.

sorry, my english is to bad. i hope you understand me

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions