{"action":"opened","issue":{"url":"https://api.github.com/repos/swoole/swoole-src/issues/690","repository_url":"https://api.github.com/repos/swoole/swoole-src","labels_url":"https://api.github.com/repos/swoole/swoole-src/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/swoole/swoole-src/issues/690/comments","events_url":"https://api.github.com/repos/swoole/swoole-src/issues/690/events","html_url":"https://github.com/swoole/swoole-src/issues/690","id":156092092,"number":690,"title":"swoole_redis在回调函数中调用close方法出现coredump","user":{"login":"fznply","id":5018409,"avatar_url":"https://avatars.githubusercontent.com/u/5018409?v=3","gravatar_id":"","url":"https://api.github.com/users/fznply","html_url":"https://github.com/fznply","followers_url":"https://api.github.com/users/fznply/followers","following_url":"https://api.github.com/users/fznply/following{/other_user}","gists_url":"https://api.github.com/users/fznply/gists{/gist_id}","starred_url":"https://api.github.com/users/fznply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fznply/subscriptions","organizations_url":"https://api.github.com/users/fznply/orgs","repos_url":"https://api.github.com/users/fznply/repos","events_url":"https://api.github.com/users/fznply/events{/privacy}","received_events_url":"https://api.github.com/users/fznply/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-21T09:02:03Z","updated_at":"2016-05-21T09:02:03Z","closed_at":null,"body":"发现swoole_redis在回调函数中调用close方法出现coredump，测试代码如下：\r\n`<?php\r\n$client = new swoole_redis;\r\n$client->on('close', function($client) {\r\n  echo \"onClose\\n\";\r\n});\r\n$client->connect('127.0.0.1', 6379, function (swoole_redis $client, $result) {\r\n    if ($result === false) {\r\n        echo \"connect to redis server failed.\\n\";\r\n        return;\r\n    }\r\n    $client->set('hello-key', 'hello-value', function (swoole_redis $client, $result) {\r\n       $client->get('hello-key', function(swoole_redis $client, $result) {\r\n          echo \"redis: get 'hello-key' is $result\\n\";\r\n          $client->close();\r\n       });\r\n    });\r\n});`"}}
{"actor":{"display_login":"fznply"}}