{"action":"reopened","issue":{"url":"https://api.github.com/repos/whitemerry/phpkin/issues/7","repository_url":"https://api.github.com/repos/whitemerry/phpkin","labels_url":"https://api.github.com/repos/whitemerry/phpkin/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/whitemerry/phpkin/issues/7/comments","events_url":"https://api.github.com/repos/whitemerry/phpkin/issues/7/events","html_url":"https://github.com/whitemerry/phpkin/issues/7","id":228938699,"number":7,"title":"Undefined variable: http_response_header","user":{"login":"xiaoxing598","id":5615719,"avatar_url":"https://avatars0.githubusercontent.com/u/5615719?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaoxing598","html_url":"https://github.com/xiaoxing598","followers_url":"https://api.github.com/users/xiaoxing598/followers","following_url":"https://api.github.com/users/xiaoxing598/following{/other_user}","gists_url":"https://api.github.com/users/xiaoxing598/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoxing598/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoxing598/subscriptions","organizations_url":"https://api.github.com/users/xiaoxing598/orgs","repos_url":"https://api.github.com/users/xiaoxing598/repos","events_url":"https://api.github.com/users/xiaoxing598/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoxing598/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-16T07:27:34Z","updated_at":"2017-05-16T07:42:23Z","closed_at":null,"body":"\"$ Http_response_header\" where the variable comes from, I can not find the place. And it raises a warning on a page.\r\n\r\n```\r\n/**\r\n     * @inheritdoc\r\n     */\r\n    public function trace($spans)\r\n    {\r\n        $contextOptions = [\r\n            'http' => [\r\n                'method' => 'POST',\r\n                'header' => 'Content-type: application/json',\r\n                'content' => json_encode($spans),\r\n                'ignore_errors' => true\r\n            ]\r\n        ];\r\n        $context = stream_context_create(array_merge_recursive($contextOptions, $this->options['contextOptions']));\r\n        @file_get_contents($this->options['host'] . $this->options['endpoint'], false, $context);\r\n\r\n        if (\r\n            !$this->options['muteErrors']\r\n            && (empty($http_response_header) || !$this->validResponse($http_response_header))\r\n        ) {\r\n            throw new LoggerException('Trace upload failed');\r\n        }\r\n    }\r\n```"}}
{"actor":{"display_login":"xiaoxing598"}}