{"action":"opened","issue":{"url":"https://api.github.com/repos/andreiz/php-zookeeper/issues/49","labels_url":"https://api.github.com/repos/andreiz/php-zookeeper/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/andreiz/php-zookeeper/issues/49/comments","events_url":"https://api.github.com/repos/andreiz/php-zookeeper/issues/49/events","html_url":"https://github.com/andreiz/php-zookeeper/issues/49","id":71760178,"number":49,"title":"Maybe we can disable some warnings.","user":{"login":"Timandes","id":305486,"avatar_url":"https://avatars.githubusercontent.com/u/305486?v=3","gravatar_id":"","url":"https://api.github.com/users/Timandes","html_url":"https://github.com/Timandes","followers_url":"https://api.github.com/users/Timandes/followers","following_url":"https://api.github.com/users/Timandes/following{/other_user}","gists_url":"https://api.github.com/users/Timandes/gists{/gist_id}","starred_url":"https://api.github.com/users/Timandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Timandes/subscriptions","organizations_url":"https://api.github.com/users/Timandes/orgs","repos_url":"https://api.github.com/users/Timandes/repos","events_url":"https://api.github.com/users/Timandes/events{/privacy}","received_events_url":"https://api.github.com/users/Timandes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T02:27:42Z","updated_at":"2015-04-29T02:27:42Z","closed_at":null,"body":"When something was going wrong, it returns false.\r\n\r\nWe could get error code & message from getResultCode() getResultMessage() just like php_memcached.\r\n\r\n    <?php\r\n\r\n    $zk = new Zookeeper('localhost:2181');\r\n    $r = $zk->set('/test', 123);\r\n    if (!$r) {\r\n        echo $zk->getResultMessage() . \"(#\" . $zk->getResultCode() . \")\";\r\n    }\r\n    echo \"Done\";\r\n"}}