From 772cf98e9501006a504d89ffb0a2ffa543a29269 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sat, 13 Sep 2008 19:53:53 +0000 Subject: [PATCH] - MFH: Reenable ini_set("mbstring.internal_encoding", VALUE) to work on runtime. (noticed by Antony. Thanks!) --- ext/mbstring/mbstring.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 7badd33581..f29fd419dd 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -735,7 +735,8 @@ static int _php_mb_ini_mbstring_internal_encoding_set(const char *new_value, uin /* {{{ static PHP_INI_MH(OnUpdate_mbstring_internal_encoding) */ static PHP_INI_MH(OnUpdate_mbstring_internal_encoding) { - if (stage == PHP_INI_STAGE_STARTUP || stage == PHP_INI_STAGE_SHUTDOWN) { + if (stage == PHP_INI_STAGE_STARTUP || stage == PHP_INI_STAGE_SHUTDOWN + || stage == PHP_INI_STAGE_RUNTIME) { return _php_mb_ini_mbstring_internal_encoding_set(new_value, new_value_length TSRMLS_CC); } else { /* the corresponding mbstring globals needs to be set according to the -- 2.50.1