use function_exists('mb_get_info') for setting Smarty::$_MBSTRING

Function mb_split could be overloaded depending on php.ini mbstring.func_overload
This commit is contained in:
Uwe Tews
2014-12-31 06:07:17 +01:00
parent 4b7fba4d88
commit 47faa63a0e
2 changed files with 6 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
 ===== 3.1.22-dev ===== (xx.xx.2014)
31.12.22014
- bugfix use function_exists('mb_get_info') for setting Smarty::$_MBSTRING.
Function mb_split could be overloaded depending on php.ini mbstring.func_overload
29.12.2014
- new feature security can now limit the template nesting level by property $max_template_nesting
see also NEW_FEATURES.txt (forum 25370)

View File

@@ -53,7 +53,7 @@ if (!defined('SMARTY_PLUGINS_DIR')) {
define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS);
}
if (!defined('SMARTY_MBSTRING')) {
define('SMARTY_MBSTRING', function_exists('mb_split'));
define('SMARTY_MBSTRING', function_exists('mb_get_info'));
}
if (!defined('SMARTY_RESOURCE_CHAR_SET')) {
// UTF-8 can only be done properly when mbstring is available!