在使用 thinkphp 开发过程中 接口返回出现头部有换行符
使用脚本查找
find . -type f -name "*.php" | while read file; do if [ -z "$(head -n 1 "$file")" ]; then echo "$file 头部包含换行符" fi done
一般有 bom头 换行符 常见问题
发表评论 取消回复