{"action":"created","issue":{"url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/17","repository_url":"https://api.github.com/repos/php-zookeeper/php-zookeeper","labels_url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/17/comments","events_url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/17/events","html_url":"https://github.com/php-zookeeper/php-zookeeper/issues/17","id":300865398,"node_id":"MDU6SXNzdWUzMDA4NjUzOTg=","number":17,"title":"watcher not work","user":{"login":"wofengletian","id":8001517,"node_id":"MDQ6VXNlcjgwMDE1MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8001517?v=4","gravatar_id":"","url":"https://api.github.com/users/wofengletian","html_url":"https://github.com/wofengletian","followers_url":"https://api.github.com/users/wofengletian/followers","following_url":"https://api.github.com/users/wofengletian/following{/other_user}","gists_url":"https://api.github.com/users/wofengletian/gists{/gist_id}","starred_url":"https://api.github.com/users/wofengletian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wofengletian/subscriptions","organizations_url":"https://api.github.com/users/wofengletian/orgs","repos_url":"https://api.github.com/users/wofengletian/repos","events_url":"https://api.github.com/users/wofengletian/events{/privacy}","received_events_url":"https://api.github.com/users/wofengletian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T02:16:25Z","updated_at":"2018-06-15T07:55:44Z","closed_at":null,"author_association":"NONE","body":"`class ZookeeperDemo extends Zookeeper\r\n{\r\n    public function watcher($i, $type, $key)\r\n    {\r\n        echo 'watcher working';\r\n        // Watcher gets consumed so we need to set a new one\r\n        $this->get('/test', array($this, 'watcher'));\r\n    }\r\n}\r\n$zoo = new ZookeeperDemo();\r\n$zoo->connect('127.0.0.1:2181');\r\n$zoo->get('/test', [$zoo,'watcher']);\r\nwhile (true) {\r\n    echo '.';\r\n    sleep(2);\r\n}`\r\n\r\ni set /test other value in client, nothing echo.\r\nphp:PHP 7.0.20-2 (cli) (built: Jun 14 2017 05:30:04) ( NTS )"},"comment":{"url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/comments/397543844","html_url":"https://github.com/php-zookeeper/php-zookeeper/issues/17#issuecomment-397543844","issue_url":"https://api.github.com/repos/php-zookeeper/php-zookeeper/issues/17","id":397543844,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU0Mzg0NA==","user":{"login":"zhengide","id":3271092,"node_id":"MDQ6VXNlcjMyNzEwOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3271092?v=4","gravatar_id":"","url":"https://api.github.com/users/zhengide","html_url":"https://github.com/zhengide","followers_url":"https://api.github.com/users/zhengide/followers","following_url":"https://api.github.com/users/zhengide/following{/other_user}","gists_url":"https://api.github.com/users/zhengide/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengide/subscriptions","organizations_url":"https://api.github.com/users/zhengide/orgs","repos_url":"https://api.github.com/users/zhengide/repos","events_url":"https://api.github.com/users/zhengide/events{/privacy}","received_events_url":"https://api.github.com/users/zhengide/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T07:55:44Z","updated_at":"2018-06-15T07:55:44Z","author_association":"NONE","body":"I meet the same problem.\r\nMy PHP version is 7.0.20, php-zookeeper version is 0.5.0, zookeeper client version is 3.4.12.\r\nBut I find it works well with PHP 7.1.15."}}
{"actor":{"display_login":"zhengide"}}