summaryrefslogtreecommitdiff
path: root/ext/mbstring/mb_gpc.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2009-03-15 20:42:56 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2009-03-15 20:42:56 +0000
commit716d2c9123d85add8a84b13b6c8ae05852705826 (patch)
tree0c3ffbbb39e5a0f987847505bd6c2b7626d2fcd9 /ext/mbstring/mb_gpc.c
parent49e408c55dce40aedc0f77e64fcc60855c534d90 (diff)
downloadphp-git-716d2c9123d85add8a84b13b6c8ae05852705826.tar.gz
- MFH: Fix a bug that mbstring.internal_encoding doesn't take effect within
the request encoding converter.
Diffstat (limited to 'ext/mbstring/mb_gpc.c')
-rw-r--r--ext/mbstring/mb_gpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/mbstring/mb_gpc.c b/ext/mbstring/mb_gpc.c
index e67b717696..0fe465a078 100644
--- a/ext/mbstring/mb_gpc.c
+++ b/ext/mbstring/mb_gpc.c
@@ -59,6 +59,11 @@ MBSTRING_API SAPI_TREAT_DATA_FUNC(mbstr_treat_data)
enum mbfl_no_encoding detected;
php_mb_encoding_handler_info_t info;
+ {
+ char *value = zend_ini_string("mbstring.internal_encoding", sizeof("mbstring.internal_encoding"), 0);
+ _php_mb_ini_mbstring_internal_encoding_set(value, value ? strlen(value): 0 TSRMLS_CC);
+ }
+
if (!MBSTRG(encoding_translation)) {
php_default_treat_data(arg, str, destArray TSRMLS_CC);
return;