Open sofire opened 7 years ago
public static function fatalError() { // 保存日志记录 if ($e = error_get_last()) { self::error_handler($e['type'],$e['message'],$e['file'],$e['line']); self::sendLog();//此类终止不会调用类的 __destruct 方法,所以此处手动sendLog } }
http://php.net/manual/en/function.error-get-last.php#113518 [Editor's note: as of PHP 7.0.0 there is error_clear_last() to clear the most recent error.]
需要添加 if (version_compare(PHP_VERSION, '7.0') >= 0){ error_clear_last(); }
if (version_compare(PHP_VERSION, '7.0') >= 0){ error_clear_last(); }
收到, 感谢
http://php.net/manual/en/function.error-get-last.php#113518 [Editor's note: as of PHP 7.0.0 there is error_clear_last() to clear the most recent error.]
需要添加
if (version_compare(PHP_VERSION, '7.0') >= 0){ error_clear_last(); }