高版本PHP环境(7.3+)下安装phpcms报continue语法错误处理方法

如图,在安装的最后一步报:

1Warning: "continue"targeting switchis equivalent to "break". Did you mean to use"continue 2"

解决方法:

用编辑器打开:\phpcms\libs\classes\db_mysqli.class.php 文件,将245行和254行的continue;改为continue 2;

foreach($dataas$k=>$v) {

   switch(substr($v, 0, 2)) {

      case'+=':

         $vsubstr($v,2);

         if(is_numeric($v)) {

            $fields[] = $this->add_special_char($k).'='.$this->add_special_char($k).'+'.$this->escape_string($v'', false);

         else{

            continue2;

         }

         break;

      case'-=':

         $vsubstr($v,2);

         if(is_numeric($v)) {

            $fields[] = $this->add_special_char($k).'='.$this->add_special_char($k).'-'.$this->escape_string($v'', false);

         else{

            continue2;

         }

         break;

      default:

         $fields[] = $this->add_special_char($k).'='.$this->escape_string($v);

   }

}