目前版本 php版本:php-5.3.5-Win32-VC9-x86
运行早期写的PHP代码,提示ereg() is deprecated,查看PHP.INI文件
; 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
; http://php.net/mbstring.func-overload
; mbstring.func_overload = 0
解决办法
mbstring.func_overload = 4 ;Overload ereg*() functions
或
mbstring.func_overload = 7 ;Overload ereg*() str*() mail() functions