错误提示:
Fatal error: 'break' not in the 'loop' or 'switch' context in Function.php
这是1.8版本运行在php7上存在的一个Bug,将phpexcel升级至1.8.1就可以了。
对于linux上需要增加php拓展。命令如下:
sudo apt-get install php7.0-zip
/etc/init.d/apache2 restart
1.8.1的地址
https://github.com/PHPOffice/PHPExcel/releases/tag/1.8.1
网盘地址
本文为wjw原创文章,转载无需和我联系,但请注明来自wjw博客http://wjiawen.cn
最新评论