错误发生在以下环境:
1. PHP 7.3
2. 安装iTop,进度40%的时候出错。

具体如下:

错误详情如下:
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in D:\xampp\htdocs\php_project\itop\web\application\cmdbabstract.class.inc.php on line 3291

在PHP7.3中,switch选择语句中的continue被更新为continue 2,或者break。

修复:
备份报错中指向的文件:

3291行的部分:
修改前:

修改后:

然后,重新执行iTOP的安装,就没问题了:

——————————
Done。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装