首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
hyperf 中 使用腾讯COS 上传文件 fopen一个大于5M的文件时会报错
### 问题描述 hyperf 中 使用腾讯COS 上传文件 fopen一个大于5M的 csv或者xlsx文件时会报错,但是12M的ZIP文件就正常 ### Swoole版本,PHP版本,以及操作系统版本信息 4.71 ,7.4 , cenos7.6 ### 相关代码 ```php $flysystem = $this->flysystem->get('cos'); echo "\n打开文件\n"; $resource = fopen($downUrl . $resultName, 'r'); $flysystem->writeStream($cosUrl. $resultName, $resource); fclose($resource); unset($resource); echo "\n关闭文件\n"; ``` ### 你期待的结果是什么?实际看到的错误信息又是什么? WARNING Server::check_worker_exit_status(): worker(pid=36, id=4) abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.7.0, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports: >> https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md Please do not send bug reports in the mailing list or personal letters. The issue page is also suitable to submit feature requests.
发布于4年前 · 30 次浏览 · 来自
提问
wmk
### 问题描述 hyperf 中 使用腾讯COS 上传文件 fopen一个大于5M的 csv或者xlsx文件时会报错,但是12M的ZIP文件就正常 ### Swoole版本,PHP版本,以及操作系统版本信息 4.71 ,7.4 , cenos7.6 ### 相关代码 ```php $flysystem = $this->flysystem->get('cos'); echo "\n打开文件\n"; $resource = fopen($downUrl . $resultName, 'r'); $flysystem->writeStream($cosUrl. $resultName, $resource); fclose($resource); unset($resource); echo "\n关闭文件\n"; ``` ### 你期待的结果是什么?实际看到的错误信息又是什么? WARNING Server::check_worker_exit_status(): worker(pid=36, id=4) abnormal exit, status=0, signal=11 A bug occurred in Swoole-v4.7.0, please report it. The Swoole developers probably don't know about it, and unless you report it, chances are it won't be fixed. You can read How to report a bug doc before submitting any bug reports: >> https://github.com/swoole/swoole-src/blob/master/.github/ISSUE.md Please do not send bug reports in the mailing list or personal letters. The issue page is also suitable to submit feature requests.
赞
1
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2021-10-23
Rango
请尝试更新至 `4.8.0` 版本,其中有对`curl native hook`的一些 bug 修复。 请使用 `USE_ZEND_ALLOC=0 valgrind php your_file.php` 跟踪程序的执行。 另外,请添加识沃微信,提供一个可以稳定重现此问题的最小 demo 给我们,以便于进行调试。
赞
0
回复