This issue occurs after you upgrade to PHP7 Phpexcel export Excel, which can be exported in a PHP5 environment.
Code
$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);header("Pragma: public");header("Expires: 0");header("Cache-Control:must-revalidate, post-check=0, pre-check=0");header("Content-Type:application/vnd.ms-execl");header('Content-Disposition:attachment;filename="xxx.xls"');header("Content-Transfer-Encoding:binary");$objWriter->save('php://output');
Reply content:
This issue occurs after you upgrade to PHP7 Phpexcel export Excel, which can be exported in a PHP5 environment.
Code
$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);header("Pragma: public");header("Expires: 0");header("Cache-Control:must-revalidate, post-check=0, pre-check=0");header("Content-Type:application/vnd.ms-execl");header('Content-Disposition:attachment;filename="xxx.xls"');header("Content-Transfer-Encoding:binary");$objWriter->save('php://output');
Error message:
Fatal error: 'break' not in the 'loop' or 'switch' context in Function.php
This is a bug that runs on PHP7 in version 1.8, and upgrades Phpexcel to 1.8.1.
Does GitHub's issue ever come across people who have the same problems as you, or StackOverflow? I used 5 execl, and I didn't use 7.