mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
05.10.2011
|
05.10.2011
|
||||||
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
||||||
|
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45)
|
||||||
|
|
||||||
04.10.2011
|
04.10.2011
|
||||||
- bugfix assign() in plugins called in subtemplates did change value also in parent template
|
- bugfix assign() in plugins called in subtemplates did change value also in parent template
|
||||||
|
@@ -57,6 +57,9 @@ 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')) {
|
||||||
|
if (ini_get('mbstring.func_overload') & 2) {
|
||||||
|
throw new SmartyException("mbstring.func_overload is active which breaks Smarty's compiler.");
|
||||||
|
}
|
||||||
define('SMARTY_MBSTRING', function_exists('mb_strlen'));
|
define('SMARTY_MBSTRING', function_exists('mb_strlen'));
|
||||||
}
|
}
|
||||||
if (!defined('SMARTY_RESOURCE_CHAR_SET')) {
|
if (!defined('SMARTY_RESOURCE_CHAR_SET')) {
|
||||||
|
Reference in New Issue
Block a user