環境是zabbix3.0 + php7.1.2
當點擊logout時出現錯誤:http://zabbix/index.php?reconnect=1
這是一個bug(原文地址:http://wuhf2015.blog.51cto.com/8213008/1761805)
解決辦法:修改php函數
在zabbix前端目錄中切換到:/zabbix/include/classes/api/wrappers
找到函數:__call
原函數定義爲:
public function __call($method, array $params) { return $this->callMethod($method, reset($params)); }
修改爲:
public function __call($method, array $params) { $a = reset($params); if ($a === FALSE) { $a = $params; } return $this->callMethod($method, $a); }
這樣就可以正常退出了