hirokawa                Wed Oct 16 10:08:47 2002 EDT

  Modified files:              
    /php4/ext/mbstring  mbstring.c 
  Log:
  modified zend_bool handling code.
  
  
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.104 php4/ext/mbstring/mbstring.c:1.105
--- php4/ext/mbstring/mbstring.c:1.104  Wed Oct 16 09:27:40 2002
+++ php4/ext/mbstring/mbstring.c        Wed Oct 16 10:08:47 2002
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mbstring.c,v 1.104 2002/10/16 13:27:40 hirokawa Exp $ */
+/* $Id: mbstring.c,v 1.105 2002/10/16 14:08:47 hirokawa Exp $ */
 
 /*
  * PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -664,7 +664,7 @@
                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 @@
         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()
 
 



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

Reply via email to