moriyoshi               Sat Sep 13 19:53:01 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/mbstring       mbstring.c 
  Log:
  - MFH: Reenable ini_set("mbstring.internal_encoding", VALUE) to work on 
runtime.
    (noticed by Antony. Thanks!)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/mbstring.c?r1=1.224.2.22.2.25.2.34&r2=1.224.2.22.2.25.2.35&diff_format=u
Index: php-src/ext/mbstring/mbstring.c
diff -u php-src/ext/mbstring/mbstring.c:1.224.2.22.2.25.2.34 
php-src/ext/mbstring/mbstring.c:1.224.2.22.2.25.2.35
--- php-src/ext/mbstring/mbstring.c:1.224.2.22.2.25.2.34        Sat Sep 13 
00:30:51 2008
+++ php-src/ext/mbstring/mbstring.c     Sat Sep 13 19:53:01 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mbstring.c,v 1.224.2.22.2.25.2.34 2008/09/13 00:30:51 moriyoshi Exp $ 
*/
+/* $Id: mbstring.c,v 1.224.2.22.2.25.2.35 2008/09/13 19:53:01 moriyoshi Exp $ 
*/
 
 /*
  * PHP 4 Multibyte String module "mbstring"
@@ -1333,7 +1333,8 @@
 /* {{{ 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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to