php8.1 读取文件nginx直接返回502
Opened this issue · 2 comments
woodynew commented
php-fpm 没有error 级别日志
2023-04-28 10:09:01 [28-Apr-2023 02:09:01] NOTICE: fpm is running, pid 1
2023-04-28 10:09:01 [28-Apr-2023 02:09:01] NOTICE: ready to handle connections
2023-04-28 10:09:17 [28-Apr-2023 02:09:17] WARNING: [pool www] child 11 exited on signal 11 (SIGSEGV) after 16.582334 seconds from start
2023-04-28 10:09:17 [28-Apr-2023 02:09:17] NOTICE: [pool www] child 34 started
viest commented
我无法复现你的问题,是否可以使用Docker,提供一个完整的复现的流程。
woodynew commented
我无法复现你的问题,是否可以使用Docker,提供一个完整的复现的流程。
我先提供一下我的Docker和使用框架你看看。
导入代码:
` $config = ['path' => $diskArr['root']];
$excel = new \Vtiful\Kernel\Excel($config);
$excelData = [];
$excelDataList = [];
//报错处
$excel->openFile($this->filePath)->setType($cellTypes)
->nextCellCallback(function ($row, $cell, $data) use (&$excelData, &$excelDataList) {
if ($data == 'XLSX_ROW_END') {
if ($excelData)
$excelDataList[] = $excelData;
$excelData = [];
} else {
$excelData[] = $data;
}
});
//释放文件占用
$excel->close();`
镜像
docker pull woodynew/php-fpm:8.1-alp3
laravel + dcat-admin
https://learnku.com/docs/dcat-admin/2.x