From a6845c01806008db510e342772fce235788121ea Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 18 Mar 2018 10:36:28 +0100 Subject: [PATCH 1/2] added check for POSIX kill to the installation wizard --- mod/install.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/install.php b/mod/install.php index 4b4940d27..049642b92 100644 --- a/mod/install.php +++ b/mod/install.php @@ -397,7 +397,8 @@ function check_funcs(&$checks) { check_add($ck_funcs, L10n::t('PDO or MySQLi PHP module'), true, true, ""); check_add($ck_funcs, L10n::t('mb_string PHP module'), true, true, ""); check_add($ck_funcs, L10n::t('XML PHP module'), true, true, ""); - check_add($ck_funcs, L10n::t('iconv module'), true, true, ""); + check_add($ck_funcs, L10n::t('iconv PHP module'), true, true, ""); + check_add($ck_funcs, L10n::t('POSIX PHP module'), true, true, ""); if (function_exists('apache_get_modules')) { if (! in_array('mod_rewrite',apache_get_modules())) { @@ -435,6 +436,10 @@ function check_funcs(&$checks) { $ck_funcs[7]['status'] = false; $ck_funcs[7]['help'] = L10n::t('Error: iconv PHP module required but not installed.'); } + if (! function_exists('posix_kill')) { + $ck_funcs[8]['status'] = false; + $ck_funcs[0]['help'] = L10n::t('Error: POSIX PHP module required but not installed.'); + } $checks = array_merge($checks, $ck_funcs); From 5fad0cd123983e957bcaf886430a534bc42d1137 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 18 Mar 2018 14:30:51 +0100 Subject: [PATCH 2/2] count from zero... --- mod/install.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/install.php b/mod/install.php index 049642b92..eb740c7b6 100644 --- a/mod/install.php +++ b/mod/install.php @@ -433,12 +433,12 @@ function check_funcs(&$checks) { $ck_funcs[4]['help'] = L10n::t('Error: mb_string PHP module required but not installed.'); } if (! function_exists('iconv_strlen')) { - $ck_funcs[7]['status'] = false; - $ck_funcs[7]['help'] = L10n::t('Error: iconv PHP module required but not installed.'); + $ck_funcs[6]['status'] = false; + $ck_funcs[6]['help'] = L10n::t('Error: iconv PHP module required but not installed.'); } if (! function_exists('posix_kill')) { - $ck_funcs[8]['status'] = false; - $ck_funcs[0]['help'] = L10n::t('Error: POSIX PHP module required but not installed.'); + $ck_funcs[7]['status'] = false; + $ck_funcs[7]['help'] = L10n::t('Error: POSIX PHP module required but not installed.'); } $checks = array_merge($checks, $ck_funcs); @@ -447,8 +447,8 @@ function check_funcs(&$checks) { try { $xml = new DOMDocument(); } catch (Exception $e) { - $ck_funcs[6]['status'] = false; - $ck_funcs[6]['help'] = L10n::t('Error, XML PHP module required but not installed.'); + $ck_funcs[5]['status'] = false; + $ck_funcs[5]['help'] = L10n::t('Error, XML PHP module required but not installed.'); } }