PHPExcel export file error

Problem: Use phpexcel to generate and download excel files Times Provisional headers are shown

Insert picture description here
Before this problem occurred, other projects used the same method to generate and download excel files without exception. This time the problem occurred, first ruled out the website path configuration problem, because after the breakpoint, the content can be output normally.
After catch catches the exception, it is displayed“continue" targeting switch is equivalent to “break”. Did you mean to use "continue 2”
Baidu later said that it was a bug in the PHP version. I
Insert picture description here
checked my PHP version and it turned out to be 7.3. I switched to 7.1 and executed normally.

Guess you like

Origin blog.csdn.net/u012830303/article/details/103005442