附件上传失败报错UNKNOW: Code: 8192; Desc: stripos():原因分析

上传失败:UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior; File: /www/wwwroot/aaa.xxxx.com/core/function/file.php; Line: 176;

打开/core/function/file.php,搜索以下
 

if (stripos($types, $ext) !== false)

替换成

if (stripos($types, chr($ext)) !== false)

posted @ 2026-03-18 10:46  可有仙子迎风立  阅读(29)  评论(0)    收藏  举报