jwj
jwj
> > 暂时可参考 [top-think/think-template#16](https://github.com/top-think/think-template/pull/16) ,自定义一个函数,然后修改`默认过滤方法`配置 > > 按这个方案修改报错: > > `[2024-08-09T10:29:35+08:00][error] [0]Call to undefined function tp_htmlentities()` 自己在 `app/common.php` 文件自定义一个函数。 ```php function tp_htmlentities($str) { return htmlentities((string)$str); } ```
该问题在 [8.0](https://github.com/top-think/framework/pull/2850) 已修复,ThinkPHP 6.* 系列无该问题 测试代码: ```php Cache::set('test', 'dasdas'); Cache::push('test', '12580') ``` 
https://github.com/top-think/framework/issues/2341
 无法复现
> 在多应用模式下,应该在 `app/[应用目录]/middleware.php` 中加载 `\think\middleware\LoadLangPack::class`  如果还有问题,请在此继续讨论或重新开始当前Issue,谢谢!
> @big-dream 是更新了:`https://github.com/top-think/think-multi-app`,但是没有发布版本啊,难道用dev版本,不好吧。。 测试时用的不是 `dev` 版本,所以应该不影响。
> 我觉得可以生成的日志文件权限 `0666` 更好。 感觉可以一起上 🍭
`ThinkPHP 6.1.4` 未复现
>  > > 如果注释返回是 `@return Type[]` ,对 IDE 貌似更友好。 因为 `Input->options` 就是普通数组,不是`Option[] `,我在IDE使用`$input->getOptions()`获取全部选项然后去使用时,IDE会给出错误提示。  根据实际排查和阅读代码,`Input->options` 最多就算是`mixed[]`而不是`Option[] `
> 在多應用模式下,不要在 `app/middleware.php` 的地方載入 `\think\middleware\LoadLangPack::class` 改成在 `app/[多應用目錄]/middleware.php` 的地方載入 正解 