]> granicus.if.org Git - php/commitdiff
modified zend_bool handling code.
authorRui Hirokawa <hirokawa@php.net>
Wed, 16 Oct 2002 14:08:47 +0000 (14:08 +0000)
committerRui Hirokawa <hirokawa@php.net>
Wed, 16 Oct 2002 14:08:47 +0000 (14:08 +0000)
ext/mbstring/mbstring.c

index d39404347bf96003d40832b997cf9e9f60c85693..a218eb39ab413efddd2b53b7778c10617a8c4494 100644 (file)
@@ -664,7 +664,7 @@ static PHP_INI_MH(OnUpdate_mbstring_encoding_translation)
                new_value_length = sizeof("1");
        }
 
-       MBSTRG(encoding_translation) =  (zend_bool) atoi(new_value);
+       OnUpdateInt(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
 
        if (MBSTRG(encoding_translation)){
                sapi_unregister_post_entry(php_post_entries);
@@ -693,7 +693,9 @@ PHP_INI_BEGIN()
         STD_PHP_INI_ENTRY("mbstring.func_overload", "0", PHP_INI_SYSTEM |
         PHP_INI_PERDIR, OnUpdateInt, func_overload, zend_mbstring_globals, mbstring_globals)
                                                                                  
-        PHP_INI_ENTRY("mbstring.encoding_translation", "0", PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_encoding_translation)                                    
+        STD_PHP_INI_BOOLEAN("mbstring.encoding_translation", "0",
+        PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_encoding_translation, 
+        encoding_translation, zend_mbstring_globals, mbstring_globals)                                  
 PHP_INI_END()