framework
framework copied to clipboard
ThinkPHP Framework
原版里只是实现了【路由到调度对象】的处理,并没有实现【指定路由分组的调度】的处理,导致按照官方手册中设置并没有生效 对应功能的官方手册地址: 【路由到调度对象】https://doc.thinkphp.cn/v8_0/route_address.html 【指定分组的调度】https://doc.thinkphp.cn/v8_0/route_group.html
### 所属功能组件 其它 ### ThinkPHP 版本 8.0.3 ### 操作系统 Windows ### 错误信息  ### 其它说明 在依赖中,PhpStorm提示该库存在2个漏洞 第一个:CVE-2022-33107 9.8 Deserialization of Untrusted Data vulnerability with High severity foun 第二个:CVE-2022-25481 7.5 Exposure...
老项目中遇到的一个问题发现在6.x版本中被修复 [具体pr](https://github.com/top-think/framework/pull/2740) 当请求类型为POST,传递类型为json时,以curl为例: ``` curl --location --request POST 'http://test.cn/' \ --header 'Content-Type: application/json' \ --header 'Content-Length: 14' \ --data-raw '{"name": null}' ``` 控制器使用如下代码时 ```
### 所属功能组件 异常(Exception) ### ThinkPHP 版本 6.1 ### 操作系统 linux ### 错误信息 复现。 在config目录创建文件`test.php`,运行后页面空白,无报错也无错误日志。 ```php
### 所属功能组件 路由(Route) ### ThinkPHP 版本 8.0.0 ### 操作系统 Eulter ### 错误信息 [08-Apr-2024 02:03:36 Etc/GMT] PHP Fatal error: Allowed memory size of 1094713344 bytes exhausted (tried to allocate 262144 bytes)...
因现在仓库每次的提交的 StyleCi 检查都不通过,且 StyleCi 的默认规则又不符合我们的需求,因此花了些时间整理出了 StyleCi 默认配置的影响。 ## 一、配置文件 目前计划增加该配置文件 ```yaml risky: false # 禁用风险类配置 version: 8.1 # PHP 版本 preset: recommended # 预设配置:推荐配置 tab-width: 4 # tab 宽度 use-tabs:...
### 所属功能组件 路由(Route) ### ThinkPHP 版本 8.0.3 ### 操作系统 windows ### 错误信息 _No response_ ### 其它说明 Route::get('new/:id', 'News/read') ->ext('html') ->allowCrossDomain(); // 不生效 Route::group(function () { ..... })->allowCrossDomain(); // 不生效 Route::group(function...
#2989 目前清理缓存时,如果对应的缓存标签下没有缓存,会触发报错: ``` ERR wrong number of arguments for 'del' command ``` https://github.com/top-think/framework/blob/aa334db11af944d114d2ec79cd986554ed80c274/src/think/cache/TagSet.php#L103-L120 https://github.com/top-think/framework/blob/aa334db11af944d114d2ec79cd986554ed80c274/src/think/cache/driver/Redis.php#L205-L215
现在 `输出路由定义` 命令的路由读取与实际和文档的不一致,导致无法正确输出多应用的路由定义。 多应用扩展中,路由配置路径为 `$this->app->getAppPath() . 'route' . DIRECTORY_SEPARATOR` https://github.com/top-think/think-multi-app/blob/master/src/MultiApp.php#L55-L63 官方文档中的路径也是应用目录下的 `route` 目录 
Only in **linux(centos 7)**, crash report php 7.2.30 SplFileObject::__construct(/tmp/phpLnXyN7): failed to open stream: No such file or directory ```php public function test(){ print_r([ request()->file('file1')->move('./uploads/test/'), request()->file('file2'), //crash ]); } ``` exception...