![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
大李段王爷
这个作者很懒,什么都没留下…
展开
-
ThinkPHP5.1 workerman扩展返回文件mimetype错误的解决方法
测试tp5.1workerman扩展的http服务器发现css,js等文件都不能正确识别mimetype,导致文件不能正确解析。 发现vendor/topthink/think-worker/src/Http.php中的getMimeType()方法使用的finfo_file()函数不能正确返回mimetype。 解决方法: 借用workerman包里面的vendor/workerman/work...原创 2019-11-29 10:20:53 · 417 阅读 · 0 评论 -
preg_match函数的坑
遇到的坑,记录下。 preg_match正则验证导致net::ERR_CONNECTION_RESET。 百度了下有以下解决方式: 1.设置pcre.backtrack_limit 2.设置pcre.recursion_limit 3.优化正则表达式 ...原创 2019-10-29 10:11:50 · 365 阅读 · 0 评论