Severity: 8192 --> preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead /www/wwwroot/psctest/diy/dayrui/helpers/function_helper.php 2985
/**
* 过滤emoji表情
* @param type $str
* @return type
*/
function dr_clear_emoji($str){
$tmpStr = json_encode($str); //暴露出unicode
$tmpStr = preg_replace("#(\\\ud[0-9a-f]{3})#ie","", $tmpStr);
$new_str = json_decode($tmpStr);
return $new_str;
}求改写成preg_replace_callback()
/** * 过滤emoji表情 * @param type $str * @return type */ function dr_clear_emoji($str){ $tmpStr = json_encode($str); //暴露出unicode $tmpStr = preg_replace("#(\\\ud[0-9a-f]{3})#i","", $tmpStr); $new_str = json_decode($tmpStr); return $new_str; }$tmpStr = preg_replace("#(\\\ud[0-9a-f]{3})#ie","", $tmpStr);里面含有了#ie 所以被判定用了 /e 修饰符 楼上的意见给你指出了 去掉e