zabbix先端がphp 7で終了した時にエラー解決方法が発生しました。


環境はzabbix 3.0+php 7.1.2です。
    logoutをクリックするとエラーが発生します。http://zabbix/index.php?reconnect=1
    これはバグです。http://wuhf2015.blog.51cto.com/8213008/1761805)
    解決方法:php関数の変更
    zabbixフロントエンドディレクトリに切り替えます。/zabbbrix/include/classis/api/wrappers
    関数を見つけましたコール
    元の関数は次のように定義されています。
       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);
        }
    これで正常に退出できます。