doulongdan2264
2018-04-16 06:49
浏览 49
已采纳

更新后Xampp中的致命错误:无法使用isset()

When I open old project in Xampp I have trouble with isset code. Actually its happening since I updated my Xampp from 1.7.3 to 3.2.1 xampp. Looks like the error is in this line:

for ($i = 1; $i <= CITY_COUNT; $i++) {
    for ($j = 1; $j <= CITY_COUNT; $j++) {
        if (isset(@$_POST[$i . '_' . $j]))
            //
            $distances[$i][$j] = @$_POST[$i . '_' . $j];
        else if (isset(@$_POST[$j . '_' . $i]))
            $distances[$i][$j] = @$_POST[$j . '_' . $i];
        else
            $distances[$i][$j] = 32767;
    }
}

I am getting an fatal error. The error say " Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) " But I don't know what's wrong in that code.. in old xampp 1.7.3 I didn't saw that error.

Please guide me.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题