{"action":"opened","number":62,"pull_request":{"url":"https://api.github.com/repos/lilydjwg/swapview/pulls/62","id":27173796,"html_url":"https://github.com/lilydjwg/swapview/pull/62","diff_url":"https://github.com/lilydjwg/swapview/pull/62.diff","patch_url":"https://github.com/lilydjwg/swapview/pull/62.patch","issue_url":"https://api.github.com/repos/lilydjwg/swapview/issues/62","number":62,"state":"open","locked":false,"title":"PHP: Add readable check to avoid E_WARNING error","user":{"login":"fwolf","id":67877,"avatar_url":"https://avatars.githubusercontent.com/u/67877?v=3","gravatar_id":"","url":"https://api.github.com/users/fwolf","html_url":"https://github.com/fwolf","followers_url":"https://api.github.com/users/fwolf/followers","following_url":"https://api.github.com/users/fwolf/following{/other_user}","gists_url":"https://api.github.com/users/fwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/fwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwolf/subscriptions","organizations_url":"https://api.github.com/users/fwolf/orgs","repos_url":"https://api.github.com/users/fwolf/repos","events_url":"https://api.github.com/users/fwolf/events{/privacy}","received_events_url":"https://api.github.com/users/fwolf/received_events","type":"User","site_admin":false},"body":"加个检查避免报错，由于函数出错时会报 E_WARNING 错误，所以没用 try/catch 机制。","created_at":"2015-01-12T03:37:59Z","updated_at":"2015-01-12T03:37:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lilydjwg/swapview/pulls/62/commits","review_comments_url":"https://api.github.com/repos/lilydjwg/swapview/pulls/62/comments","review_comment_url":"https://api.github.com/repos/lilydjwg/swapview/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lilydjwg/swapview/issues/62/comments","statuses_url":"https://api.github.com/repos/lilydjwg/swapview/statuses/7c8b2ae51c6e9bbb11140002788c764d01a647f1","head":{"label":"fwolf:php","ref":"php","sha":"7c8b2ae51c6e9bbb11140002788c764d01a647f1","user":{"login":"fwolf","id":67877,"avatar_url":"https://avatars.githubusercontent.com/u/67877?v=3","gravatar_id":"","url":"https://api.github.com/users/fwolf","html_url":"https://github.com/fwolf","followers_url":"https://api.github.com/users/fwolf/followers","following_url":"https://api.github.com/users/fwolf/following{/other_user}","gists_url":"https://api.github.com/users/fwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/fwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwolf/subscriptions","organizations_url":"https://api.github.com/users/fwolf/orgs","repos_url":"https://api.github.com/users/fwolf/repos","events_url":"https://api.github.com/users/fwolf/events{/privacy}","received_events_url":"https://api.github.com/users/fwolf/received_events","type":"User","site_admin":false},"repo":{"id":29007254,"name":"swapview","full_name":"fwolf/swapview","owner":{"login":"fwolf","id":67877,"avatar_url":"https://avatars.githubusercontent.com/u/67877?v=3","gravatar_id":"","url":"https://api.github.com/users/fwolf","html_url":"https://github.com/fwolf","followers_url":"https://api.github.com/users/fwolf/followers","following_url":"https://api.github.com/users/fwolf/following{/other_user}","gists_url":"https://api.github.com/users/fwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/fwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwolf/subscriptions","organizations_url":"https://api.github.com/users/fwolf/orgs","repos_url":"https://api.github.com/users/fwolf/repos","events_url":"https://api.github.com/users/fwolf/events{/privacy}","received_events_url":"https://api.github.com/users/fwolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fwolf/swapview","description":"Print swap usage per process. Implemented in various programming languages","fork":true,"url":"https://api.github.com/repos/fwolf/swapview","forks_url":"https://api.github.com/repos/fwolf/swapview/forks","keys_url":"https://api.github.com/repos/fwolf/swapview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fwolf/swapview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fwolf/swapview/teams","hooks_url":"https://api.github.com/repos/fwolf/swapview/hooks","issue_events_url":"https://api.github.com/repos/fwolf/swapview/issues/events{/number}","events_url":"https://api.github.com/repos/fwolf/swapview/events","assignees_url":"https://api.github.com/repos/fwolf/swapview/assignees{/user}","branches_url":"https://api.github.com/repos/fwolf/swapview/branches{/branch}","tags_url":"https://api.github.com/repos/fwolf/swapview/tags","blobs_url":"https://api.github.com/repos/fwolf/swapview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fwolf/swapview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fwolf/swapview/git/refs{/sha}","trees_url":"https://api.github.com/repos/fwolf/swapview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fwolf/swapview/statuses/{sha}","languages_url":"https://api.github.com/repos/fwolf/swapview/languages","stargazers_url":"https://api.github.com/repos/fwolf/swapview/stargazers","contributors_url":"https://api.github.com/repos/fwolf/swapview/contributors","subscribers_url":"https://api.github.com/repos/fwolf/swapview/subscribers","subscription_url":"https://api.github.com/repos/fwolf/swapview/subscription","commits_url":"https://api.github.com/repos/fwolf/swapview/commits{/sha}","git_commits_url":"https://api.github.com/repos/fwolf/swapview/git/commits{/sha}","comments_url":"https://api.github.com/repos/fwolf/swapview/comments{/number}","issue_comment_url":"https://api.github.com/repos/fwolf/swapview/issues/comments/{number}","contents_url":"https://api.github.com/repos/fwolf/swapview/contents/{+path}","compare_url":"https://api.github.com/repos/fwolf/swapview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fwolf/swapview/merges","archive_url":"https://api.github.com/repos/fwolf/swapview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fwolf/swapview/downloads","issues_url":"https://api.github.com/repos/fwolf/swapview/issues{/number}","pulls_url":"https://api.github.com/repos/fwolf/swapview/pulls{/number}","milestones_url":"https://api.github.com/repos/fwolf/swapview/milestones{/number}","notifications_url":"https://api.github.com/repos/fwolf/swapview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fwolf/swapview/labels{/name}","releases_url":"https://api.github.com/repos/fwolf/swapview/releases{/id}","created_at":"2015-01-09T08:13:26Z","updated_at":"2015-01-12T03:28:37Z","pushed_at":"2015-01-12T03:34:18Z","git_url":"git://github.com/fwolf/swapview.git","ssh_url":"git@github.com:fwolf/swapview.git","clone_url":"https://github.com/fwolf/swapview.git","svn_url":"https://github.com/fwolf/swapview","homepage":null,"size":271,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lilydjwg:master","ref":"master","sha":"5d1d9a4bed79b1951428d7b80ffe0bbe4a708daf","user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"repo":{"id":28377312,"name":"swapview","full_name":"lilydjwg/swapview","owner":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lilydjwg/swapview","description":"Print swap usage per process. Implemented in various programming languages","fork":false,"url":"https://api.github.com/repos/lilydjwg/swapview","forks_url":"https://api.github.com/repos/lilydjwg/swapview/forks","keys_url":"https://api.github.com/repos/lilydjwg/swapview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lilydjwg/swapview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lilydjwg/swapview/teams","hooks_url":"https://api.github.com/repos/lilydjwg/swapview/hooks","issue_events_url":"https://api.github.com/repos/lilydjwg/swapview/issues/events{/number}","events_url":"https://api.github.com/repos/lilydjwg/swapview/events","assignees_url":"https://api.github.com/repos/lilydjwg/swapview/assignees{/user}","branches_url":"https://api.github.com/repos/lilydjwg/swapview/branches{/branch}","tags_url":"https://api.github.com/repos/lilydjwg/swapview/tags","blobs_url":"https://api.github.com/repos/lilydjwg/swapview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lilydjwg/swapview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lilydjwg/swapview/git/refs{/sha}","trees_url":"https://api.github.com/repos/lilydjwg/swapview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lilydjwg/swapview/statuses/{sha}","languages_url":"https://api.github.com/repos/lilydjwg/swapview/languages","stargazers_url":"https://api.github.com/repos/lilydjwg/swapview/stargazers","contributors_url":"https://api.github.com/repos/lilydjwg/swapview/contributors","subscribers_url":"https://api.github.com/repos/lilydjwg/swapview/subscribers","subscription_url":"https://api.github.com/repos/lilydjwg/swapview/subscription","commits_url":"https://api.github.com/repos/lilydjwg/swapview/commits{/sha}","git_commits_url":"https://api.github.com/repos/lilydjwg/swapview/git/commits{/sha}","comments_url":"https://api.github.com/repos/lilydjwg/swapview/comments{/number}","issue_comment_url":"https://api.github.com/repos/lilydjwg/swapview/issues/comments/{number}","contents_url":"https://api.github.com/repos/lilydjwg/swapview/contents/{+path}","compare_url":"https://api.github.com/repos/lilydjwg/swapview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lilydjwg/swapview/merges","archive_url":"https://api.github.com/repos/lilydjwg/swapview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lilydjwg/swapview/downloads","issues_url":"https://api.github.com/repos/lilydjwg/swapview/issues{/number}","pulls_url":"https://api.github.com/repos/lilydjwg/swapview/pulls{/number}","milestones_url":"https://api.github.com/repos/lilydjwg/swapview/milestones{/number}","notifications_url":"https://api.github.com/repos/lilydjwg/swapview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lilydjwg/swapview/labels{/name}","releases_url":"https://api.github.com/repos/lilydjwg/swapview/releases{/id}","created_at":"2014-12-23T04:31:51Z","updated_at":"2015-01-11T14:26:53Z","pushed_at":"2015-01-11T14:26:53Z","git_url":"git://github.com/lilydjwg/swapview.git","ssh_url":"git@github.com:lilydjwg/swapview.git","clone_url":"https://github.com/lilydjwg/swapview.git","svn_url":"https://github.com/lilydjwg/swapview","homepage":null,"size":1193,"stargazers_count":37,"watchers_count":37,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":8,"forks":26,"open_issues":8,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lilydjwg/swapview/pulls/62"},"html":{"href":"https://github.com/lilydjwg/swapview/pull/62"},"issue":{"href":"https://api.github.com/repos/lilydjwg/swapview/issues/62"},"comments":{"href":"https://api.github.com/repos/lilydjwg/swapview/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/lilydjwg/swapview/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/lilydjwg/swapview/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lilydjwg/swapview/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/lilydjwg/swapview/statuses/7c8b2ae51c6e9bbb11140002788c764d01a647f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":2,"changed_files":1}}