mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
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:
@@ -1,4 +1,9 @@
|
|||||||
===== 3.1.22-dev ===== (xx.xx.2014)
|
===== 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
|
29.12.2014
|
||||||
- new feature security can now limit the template nesting level by property $max_template_nesting
|
- new feature security can now limit the template nesting level by property $max_template_nesting
|
||||||
see also NEW_FEATURES.txt (forum 25370)
|
see also NEW_FEATURES.txt (forum 25370)
|
||||||
|
@@ -53,7 +53,7 @@ if (!defined('SMARTY_PLUGINS_DIR')) {
|
|||||||
define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS);
|
define('SMARTY_PLUGINS_DIR', SMARTY_DIR . 'plugins' . DS);
|
||||||
}
|
}
|
||||||
if (!defined('SMARTY_MBSTRING')) {
|
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')) {
|
if (!defined('SMARTY_RESOURCE_CHAR_SET')) {
|
||||||
// UTF-8 can only be done properly when mbstring is available!
|
// UTF-8 can only be done properly when mbstring is available!
|
||||||
|
Reference in New Issue
Block a user