From 107a48ce2cf738581e7eb432ba22d214ba1011e3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 22 Feb 2014 17:12:24 +0000 Subject: [PATCH] fixed checks and config to use mbstring.func_overlaod=0 and disabled checks from anyway not supported databases --- doc/rpm-build/apache.conf | 8 +------- mail/setup/setup.inc.php | 6 ++++++ setup/check_install.php | 29 ++++++++++++----------------- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/doc/rpm-build/apache.conf b/doc/rpm-build/apache.conf index e2fb3f7cd4..e576e9ddbb 100644 --- a/doc/rpm-build/apache.conf +++ b/doc/rpm-build/apache.conf @@ -32,7 +32,7 @@ RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1 # E_ALL & ~E_NOTICE & ~E_STRICT = 8191 - 8 - 2048 = 6135 php_value error_reporting 6135 php_value max_execution_time 90 - php_admin_value mbstring.func_overload 7 + php_admin_value mbstring.func_overload 0 php_value memory_limit 128M php_value include_path .:/usr/share/pear php_admin_value open_basedir /usr/share/egroupware:/var/lib/egroupware:/tmp:/usr/share/pear:/usr/bin/zip:/usr/share/jpgraph:/usr/bin/tnef:/usr/bin/aspell:/usr/share/fonts @@ -66,9 +66,3 @@ RedirectMatch ^(/principals/users/.*)$ /egroupware/groupdav.php$1 php_admin_value open_basedir /usr/share/egroupware:/var/lib/egroupware:/tmp:/usr/share/pear:/usr/bin:/bin - - - php_admin_value mbstring.func_overload 0 - Order allow,deny - Allow from all - diff --git a/mail/setup/setup.inc.php b/mail/setup/setup.inc.php index 8097fa27a0..f350296c97 100644 --- a/mail/setup/setup.inc.php +++ b/mail/setup/setup.inc.php @@ -78,6 +78,12 @@ $setup_info['mail']['check_install'] = array( 'value' => 0, 'verbose_value' => 'Off', ), + 'mbstring.func_overload' => array( + 'func' => 'php_ini_check', + 'value' => 0, + 'warning' => '
' . lang('mbstring.func_overload=0 is required for correct mail processing!') . "
", + 'change' => check_load_extension('mbstring') ? 'mbstring.func_overload = 0' : '', + ), 'tnef' => array( 'func' => 'tnef_check', ), diff --git a/setup/check_install.php b/setup/check_install.php index 51fa7c933c..e7419c1edd 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -80,7 +80,7 @@ $checks = array( ), 'memory_limit' => array( 'func' => 'php_ini_check', - 'value' => '24M', + 'value' => '128M', 'check' => '>=', 'error' => lang('memory_limit is set to less than %1: some applications of eGroupWare need more than the recommend 8M, expect occasional failures','24M'), 'change' => 'memory_limit = 24M' @@ -150,6 +150,7 @@ $checks = array( 'func' => 'extension_check', 'warning' => lang('The %1 extension is needed, if you plan to use a %2 database.','pdo_pgsql','pgSQL') ), + /* disable checks for other database extensions, as we are not really supporting them anymore 'mssql' => array( 'func' => 'extension_check', 'warning' => lang('The %1 extension is needed, if you plan to use a %2 database.','mssql','MsSQL'), @@ -175,17 +176,11 @@ $checks = array( 'pdo_oci' => array( 'func' => 'extension_check', 'warning' => lang('The %1 extension is needed, if you plan to use a %2 database.','pdo_oci','Oracle'), - ), + ),*/ 'mbstring' => array( 'func' => 'extension_check', 'warning' => lang('The mbstring extension is needed to fully support unicode (utf-8) or other multibyte-charsets.') ), - 'mbstring.func_overload' => array( - 'func' => 'php_ini_check', - 'value' => 7, - 'warning' => '
' . lang('The mbstring.func_overload = 7 is needed to fully support unicode (utf-8) or other multibyte-charsets.') . "
", - 'change' => check_load_extension('mbstring') ? 'mbstring.func_overload = 7' : '', - ), 'ldap' => array( 'func' => 'extension_check', 'warning' => lang("The ldap extension is needed, if you use ldap as account or contact storage, authenticate against ldap or active directory. It's not needed for a standard SQL installation."), @@ -429,15 +424,6 @@ function pear_check($package,$args) echo ' '.lang('PEAR (%1) is a PHP repository and is usually in a package called %2.', 'pear.php.net','php-pear'); } - elseif ($min_version && !$version_available) - { - echo ' '.lang('We could not determine the version of %1, please make sure it is at least %2',$package,$min_version); - } - elseif ($min_version && version_compare($min_version,$version_available) > 0) - { - echo ' '.lang('Your installed version of %1 is %2, required is at least %3, please run: ', - $package,$version_available,$min_version).' pear update '.$package; - } elseif ($package) { echo ' '.lang('You can install it by running:'). @@ -446,6 +432,15 @@ function pear_check($package,$args) } echo ""; } + elseif ($min_version && !$version_available) + { + echo '
'.lang('We could not determine the version of %1, please make sure it is at least %2',$package,$min_version).'
'; + } + elseif ($min_version && version_compare($min_version,$version_available) > 0) + { + echo '
'.lang('Your installed version of %1 is %2, required is at least %3, please run: ', + $package,$version_available,$min_version).' pear update '.$package.'
'; + } echo "\n"; return $available;