diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-12 13:26:16 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-05-12 13:26:16 +0000 |
commit | e500e957bad158f0b3c264cb8d1f77ab4a19a868 (patch) | |
tree | 09361ea9ad13b375b22e31d808e0493b1a5d06d0 | |
parent | 3eab2fb3bd6123968d5bf795716b3438236e3041 (diff) | |
download | php-git-e500e957bad158f0b3c264cb8d1f77ab4a19a868.tar.gz |
Applied the right fix for bug #23016
-rw-r--r-- | ext/mbstring/mbstring.c | 10 | ||||
-rw-r--r-- | ext/mbstring/mbstring.h | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 974a525e95..eec453b140 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -635,15 +635,7 @@ static PHP_INI_MH(OnUpdate_mbstring_encoding_translation) return FAILURE; } - if (!strncasecmp(new_value, "off", sizeof("off"))) { - new_value = "0"; - new_value_length = sizeof("0"); - } else if (!strncasecmp(new_value, "on", sizeof("on"))) { - new_value = "1"; - new_value_length = sizeof("1"); - } - - OnUpdateLong(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC); + OnUpdateBool(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC); if (MBSTRG(encoding_translation)){ _php_mb_enable_encoding_translation(1); diff --git a/ext/mbstring/mbstring.h b/ext/mbstring/mbstring.h index fed29fd729..09fa2cc387 100644 --- a/ext/mbstring/mbstring.h +++ b/ext/mbstring/mbstring.h @@ -163,7 +163,7 @@ ZEND_BEGIN_MODULE_GLOBALS(mbstring) int filter_illegal_substchar; int current_filter_illegal_mode; int current_filter_illegal_substchar; - long func_overload; + zend_bool func_overload; long encoding_translation; mbfl_buffer_converter *outconv; #if HAVE_MBREGEX && defined(PHP_MBREGEX_GLOBALS) |