From fee15797f7a7363163b5ced89ffe6e1e5ccda116 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Wed, 1 Jun 2016 22:40:46 +0200 Subject: [PATCH] Check for PHP XML support in setup.php (see #91) --- htdocs/setup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/setup.php b/htdocs/setup.php index be48d986..41d8df82 100644 --- a/htdocs/setup.php +++ b/htdocs/setup.php @@ -224,6 +224,10 @@ function check_datetime() { return $result; } +function check_xml() { + return new CheckResult(function_exists('xml_parser_create_ns')); +} + function check_schema_version() { global $c; if ( $c->want_dbversion[0] == $c->schema_major @@ -324,6 +328,7 @@ function build_dependencies_table( ) { translate('GNU gettext support') => 'check_gettext', translate('PHP iconv support') => 'check_iconv', translate('PHP DateTime class') => 'check_datetime', + translate('PHP XML support') => 'check_xml', translate('Suhosin "server.strip" disabled') => 'check_suhosin_server_strip', translate('PHP Magic Quotes GPC off') => 'check_magic_quotes_gpc', translate('PHP Magic Quotes runtime off') => 'check_magic_quotes_runtime',