]> granicus.if.org Git - php/commitdiff
- Reenable ini_set("mbstring.internal_encoding", VALUE) to work on runtime.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 13 Sep 2008 19:50:26 +0000 (19:50 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 13 Sep 2008 19:50:26 +0000 (19:50 +0000)
  (noticed by Antony. Thanks!)

ext/mbstring/mbstring.c

index 4975f46774f76a44b57d7da80402e0f0e290737f..dcf6fbccab68fc9ce0a6df5cd72e6141899aeea8 100644 (file)
@@ -1165,7 +1165,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