如图,在安装的最后一步报:
1 | Warning: "continue" targeting switch is equivalent to "break" . Did you mean to use "continue 2" |
解决方法:
用编辑器打开:\phpcms\libs\classes\db_mysqli.class.php 文件,将245行和254行的continue;改为continue 2;
foreach
(
$data
as
$k
=>
$v
) {
switch
(
substr
(
$v
, 0, 2)) {
case
'+='
:
$v
=
substr
(
$v
,2);
if
(
is_numeric
(
$v
)) {
$fields
[] =
$this
->add_special_char(
$k
).
'='
.
$this
->add_special_char(
$k
).
'+'
.
$this
->escape_string(
$v
,
''
, false);
}
else
{
continue
2;
}
break
;
case
'-='
:
$v
=
substr
(
$v
,2);
if
(
is_numeric
(
$v
)) {
$fields
[] =
$this
->add_special_char(
$k
).
'='
.
$this
->add_special_char(
$k
).
'-'
.
$this
->escape_string(
$v
,
''
, false);
}
else
{
continue
2;
}
break
;
default
:
$fields
[] =
$this
->add_special_char(
$k
).
'='
.
$this
->escape_string(
$v
);
}
}