|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-9-2 11:36:18
|
显示全部楼层
jeongee 发表于 2011-9-2 11:28 ![](static/image/common/back.gif)
string.func_overload=1是重载mail函数啊?
上边的那段代码来自 core/utf8.php 好像是用来判断当前环境是否支持utf-8 ,为何要用ini_get('mbstring.func_overload') != 1 来判断是否支持utf-8呢?
配置文件中对mbstring.func_overload说明:
; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0
|
|