check mbstring function overloading in installer. closes #736
This commit is contained in:
parent
17076c2ad0
commit
7f41344085
|
@ -307,6 +307,7 @@ $lang['i_modified'] = 'For security reasons this script will only wor
|
|||
<a href="http://dokuwiki.org/install">Dokuwiki installation instructions</a>';
|
||||
$lang['i_funcna'] = 'PHP function <code>%s</code> is not available. Maybe your hosting provider disabled it for some reason?';
|
||||
$lang['i_phpver'] = 'Your PHP version <code>%s</code> is lower than the needed <code>%s</code>. You need to upgrade your PHP install.';
|
||||
$lang['i_mbfuncoverload'] = 'mbstring.func_overload must be disabled in php.ini to run DokuWiki.';
|
||||
$lang['i_permfail'] = '<code>%s</code> is not writable by DokuWiki. You need to fix the permission settings of this directory!';
|
||||
$lang['i_confexists'] = '<code>%s</code> already exists';
|
||||
$lang['i_writeerr'] = 'Unable to create <code>%s</code>. You will need to check directory/file permissions and create the file manually.';
|
||||
|
|
|
@ -533,6 +533,11 @@ function check_functions(){
|
|||
$ok = false;
|
||||
}
|
||||
|
||||
if(ini_get('mbstring.func_overload') != 0){
|
||||
$error[] = $lang['i_mbfuncoverload'];
|
||||
$ok = false;
|
||||
}
|
||||
|
||||
$funcs = explode(' ','addslashes call_user_func chmod copy fgets '.
|
||||
'file file_exists fseek flush filesize ftell fopen '.
|
||||
'glob header ignore_user_abort ini_get mail mkdir '.
|
||||
|
|
Loading…
Reference in New Issue