帝国备份王5.1开源版 在php7.3.6无法备份,执行就出现404错误,查看日志发现: "message: PHP Warning: Use of undefined constant Type - assumed 'Type' (this will throw an Error in a future version of PHP) in ***/functions.php on line 1000PHP message: PHP Warning: Use of undefined constant Type - assumed 'Type' (this will throw an Error in a future version of PHP) in ***/functions.php on line 1000"
functions.php第1000行内容: //返回字符字段 function Ebak_ReturnInStrTbfield($dbname,$tbname){ global $empire; $sql=$empire->query("SHOW FIELDS FROM `".$tbname."`"); $i=0; $f=''; $dh=''; while($r=$empire->fetch($sql)) { $i++; if(!(stristr($r[Type],'char')||stristr($r[Type],'text'))) { continue; } $f.=$dh.$i; $dh=','; } if($f) { $f=','.$f.','; } return $f; } 其中错误在这个: if(!(stristr($r[Type],'char')||stristr($r[Type],'text')))
咋整?
|