Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.1 读取文件nginx直接返回502 #478

Open
woodynew opened this issue May 5, 2023 · 2 comments
Open

php8.1 读取文件nginx直接返回502 #478

woodynew opened this issue May 5, 2023 · 2 comments

Comments

@woodynew
Copy link

woodynew commented May 5, 2023

#430

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
Copy link
Owner

viest commented May 13, 2023

我无法复现你的问题,是否可以使用Docker,提供一个完整的复现的流程。

@woodynew
Copy link
Author

woodynew commented Jun 4, 2023

我无法复现你的问题,是否可以使用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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants