From: <am...@us...> - 2012-08-22 20:37:01
|
Revision: 42673 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42673&view=rev Author: amette Date: 2012-08-22 20:36:51 +0000 (Wed, 22 Aug 2012) Log Message: ----------- [ENH] Better check for correct installation of mbstring extension Modified Paths: -------------- trunk/tiki-check.php Modified: trunk/tiki-check.php =================================================================== --- trunk/tiki-check.php 2012-08-22 20:35:33 UTC (rev 42672) +++ trunk/tiki-check.php 2012-08-22 20:36:51 UTC (rev 42673) @@ -387,19 +387,25 @@ // mbstring $s = extension_loaded('mbstring'); if ($s) { - $i = ini_get('mbstring.func_overload'); - if ($i == 0) { + $func_overload = ini_get('mbstring.func_overload'); + if ($func_overload == 0 && function_exists(mb_split)) { $php_properties['mbstring'] = array( 'fitness' => tra('good'), 'setting' => 'Loaded', 'message' => tra('The mbstring extension is needed for an UTF-8 compatible lower case filter in the Admin search for example.') ); - } else { + } elseif ($func_overload != 0) { $php_properties['mbstring'] = array( 'fitness' => tra('ugly'), 'setting' => 'Badly configured', - 'message' => tra('The mbstring extension is loaded, but mbstring.func_overload = '.' '.$i.'.'.' '.'Tiki only works with mbsring.func_overload = 0. Please check your php.ini.') + 'message' => tra('The mbstring extension is loaded, but mbstring.func_overload = '.' '.$func_overload.'.'.' '.'Tiki only works with mbsring.func_overload = 0. Please check your php.ini.') ); + } else { + $php_properties['mbstring'] = array( + 'fitness' => tra('bad'), + 'setting' => 'Badly installed', + 'message' => tra('The mbstring extension is loaded, but missing important functions as for example mb_split(). You need to reinstall it with --enable-mbregex or ask your hoster do do it.') + ); } } else { $php_properties['mbstring'] = array( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |