'break' not in the 'loop' or 'switch' context 報錯

 

Fatal error:  'break' not in the 'loop' or 'switch' context in

../assets/Classes/PHPExcel/Calculation/Functions.php

 

'break' not in the 'loop' or 'switch' context
錯誤位置
FILE: /private/var/www/backend/ThinkPHP/Library/Org/Util/PHPExcel/Calculation/Functions.php  LINE: 576

在網上一搜,確實有不少人也問了:

直接刪除576行的 'break'即可!

網上有人說是高版本的php7.0纔有的,因爲:

As break is after return statement, so it giving fatal error.

因爲break在return之後,報了個語法錯誤!確實不對!

也有人說這個bug在 1.8.1 中已經修復!我用的是1.7.9,大家以後一定要用最新版!
————————————————
版權聲明:本文爲CSDN博主「深漂小碼哥」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq2942713658/article/details/83068353

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章