{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4","id":39349608,"html_url":"https://github.com/weberhofer/jsonrpcphp/pull/4","diff_url":"https://github.com/weberhofer/jsonrpcphp/pull/4.diff","patch_url":"https://github.com/weberhofer/jsonrpcphp/pull/4.patch","issue_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/4","number":4,"state":"open","locked":false,"title":"Only create stream_context if curl is not used","user":{"login":"dajero","id":4921142,"avatar_url":"https://avatars.githubusercontent.com/u/4921142?v=3","gravatar_id":"","url":"https://api.github.com/users/dajero","html_url":"https://github.com/dajero","followers_url":"https://api.github.com/users/dajero/followers","following_url":"https://api.github.com/users/dajero/following{/other_user}","gists_url":"https://api.github.com/users/dajero/gists{/gist_id}","starred_url":"https://api.github.com/users/dajero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajero/subscriptions","organizations_url":"https://api.github.com/users/dajero/orgs","repos_url":"https://api.github.com/users/dajero/repos","events_url":"https://api.github.com/users/dajero/events{/privacy}","received_events_url":"https://api.github.com/users/dajero/received_events","type":"User","site_admin":false},"body":"Admittedly, this is not a dramatic improvement, but I changed this as I was working on something else. \r\n\r\nBefore, __call would initialize the $opts and $context variables that are only used by fopen, not cURL. This commit places their initialization in the else-branch of the if-statement that determines if cURL can be used.","created_at":"2015-07-07T09:16:58Z","updated_at":"2015-07-07T09:16:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4/commits","review_comments_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4/comments","review_comment_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/4/comments","statuses_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/statuses/1387b86132cc43927aa3d1652325ae596e5b3d01","head":{"label":"dajero:move-context-creation","ref":"move-context-creation","sha":"1387b86132cc43927aa3d1652325ae596e5b3d01","user":{"login":"dajero","id":4921142,"avatar_url":"https://avatars.githubusercontent.com/u/4921142?v=3","gravatar_id":"","url":"https://api.github.com/users/dajero","html_url":"https://github.com/dajero","followers_url":"https://api.github.com/users/dajero/followers","following_url":"https://api.github.com/users/dajero/following{/other_user}","gists_url":"https://api.github.com/users/dajero/gists{/gist_id}","starred_url":"https://api.github.com/users/dajero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajero/subscriptions","organizations_url":"https://api.github.com/users/dajero/orgs","repos_url":"https://api.github.com/users/dajero/repos","events_url":"https://api.github.com/users/dajero/events{/privacy}","received_events_url":"https://api.github.com/users/dajero/received_events","type":"User","site_admin":false},"repo":{"id":38676412,"name":"jsonrpcphp","full_name":"dajero/jsonrpcphp","owner":{"login":"dajero","id":4921142,"avatar_url":"https://avatars.githubusercontent.com/u/4921142?v=3","gravatar_id":"","url":"https://api.github.com/users/dajero","html_url":"https://github.com/dajero","followers_url":"https://api.github.com/users/dajero/followers","following_url":"https://api.github.com/users/dajero/following{/other_user}","gists_url":"https://api.github.com/users/dajero/gists{/gist_id}","starred_url":"https://api.github.com/users/dajero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dajero/subscriptions","organizations_url":"https://api.github.com/users/dajero/orgs","repos_url":"https://api.github.com/users/dajero/repos","events_url":"https://api.github.com/users/dajero/events{/privacy}","received_events_url":"https://api.github.com/users/dajero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dajero/jsonrpcphp","description":"JSON-RPC PHP is a couple of classes written in PHP implementing respectively client and server functionalities of the JSON-RPC protocol.","fork":true,"url":"https://api.github.com/repos/dajero/jsonrpcphp","forks_url":"https://api.github.com/repos/dajero/jsonrpcphp/forks","keys_url":"https://api.github.com/repos/dajero/jsonrpcphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dajero/jsonrpcphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dajero/jsonrpcphp/teams","hooks_url":"https://api.github.com/repos/dajero/jsonrpcphp/hooks","issue_events_url":"https://api.github.com/repos/dajero/jsonrpcphp/issues/events{/number}","events_url":"https://api.github.com/repos/dajero/jsonrpcphp/events","assignees_url":"https://api.github.com/repos/dajero/jsonrpcphp/assignees{/user}","branches_url":"https://api.github.com/repos/dajero/jsonrpcphp/branches{/branch}","tags_url":"https://api.github.com/repos/dajero/jsonrpcphp/tags","blobs_url":"https://api.github.com/repos/dajero/jsonrpcphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dajero/jsonrpcphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dajero/jsonrpcphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/dajero/jsonrpcphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dajero/jsonrpcphp/statuses/{sha}","languages_url":"https://api.github.com/repos/dajero/jsonrpcphp/languages","stargazers_url":"https://api.github.com/repos/dajero/jsonrpcphp/stargazers","contributors_url":"https://api.github.com/repos/dajero/jsonrpcphp/contributors","subscribers_url":"https://api.github.com/repos/dajero/jsonrpcphp/subscribers","subscription_url":"https://api.github.com/repos/dajero/jsonrpcphp/subscription","commits_url":"https://api.github.com/repos/dajero/jsonrpcphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/dajero/jsonrpcphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/dajero/jsonrpcphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/dajero/jsonrpcphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/dajero/jsonrpcphp/contents/{+path}","compare_url":"https://api.github.com/repos/dajero/jsonrpcphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dajero/jsonrpcphp/merges","archive_url":"https://api.github.com/repos/dajero/jsonrpcphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dajero/jsonrpcphp/downloads","issues_url":"https://api.github.com/repos/dajero/jsonrpcphp/issues{/number}","pulls_url":"https://api.github.com/repos/dajero/jsonrpcphp/pulls{/number}","milestones_url":"https://api.github.com/repos/dajero/jsonrpcphp/milestones{/number}","notifications_url":"https://api.github.com/repos/dajero/jsonrpcphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dajero/jsonrpcphp/labels{/name}","releases_url":"https://api.github.com/repos/dajero/jsonrpcphp/releases{/id}","created_at":"2015-07-07T09:06:09Z","updated_at":"2015-07-07T09:06:09Z","pushed_at":"2015-07-07T09:13:45Z","git_url":"git://github.com/dajero/jsonrpcphp.git","ssh_url":"git@github.com:dajero/jsonrpcphp.git","clone_url":"https://github.com/dajero/jsonrpcphp.git","svn_url":"https://github.com/dajero/jsonrpcphp","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"weberhofer:master","ref":"master","sha":"acbd901d149aaa2e9dacecb5f8a364773c3465af","user":{"login":"weberhofer","id":793251,"avatar_url":"https://avatars.githubusercontent.com/u/793251?v=3","gravatar_id":"","url":"https://api.github.com/users/weberhofer","html_url":"https://github.com/weberhofer","followers_url":"https://api.github.com/users/weberhofer/followers","following_url":"https://api.github.com/users/weberhofer/following{/other_user}","gists_url":"https://api.github.com/users/weberhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/weberhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weberhofer/subscriptions","organizations_url":"https://api.github.com/users/weberhofer/orgs","repos_url":"https://api.github.com/users/weberhofer/repos","events_url":"https://api.github.com/users/weberhofer/events{/privacy}","received_events_url":"https://api.github.com/users/weberhofer/received_events","type":"User","site_admin":false},"repo":{"id":22220886,"name":"jsonrpcphp","full_name":"weberhofer/jsonrpcphp","owner":{"login":"weberhofer","id":793251,"avatar_url":"https://avatars.githubusercontent.com/u/793251?v=3","gravatar_id":"","url":"https://api.github.com/users/weberhofer","html_url":"https://github.com/weberhofer","followers_url":"https://api.github.com/users/weberhofer/followers","following_url":"https://api.github.com/users/weberhofer/following{/other_user}","gists_url":"https://api.github.com/users/weberhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/weberhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weberhofer/subscriptions","organizations_url":"https://api.github.com/users/weberhofer/orgs","repos_url":"https://api.github.com/users/weberhofer/repos","events_url":"https://api.github.com/users/weberhofer/events{/privacy}","received_events_url":"https://api.github.com/users/weberhofer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/weberhofer/jsonrpcphp","description":"JSON-RPC PHP is a couple of classes written in PHP implementing respectively client and server functionalities of the JSON-RPC protocol.","fork":false,"url":"https://api.github.com/repos/weberhofer/jsonrpcphp","forks_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/forks","keys_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/teams","hooks_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/hooks","issue_events_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/events{/number}","events_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/events","assignees_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/assignees{/user}","branches_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/branches{/branch}","tags_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/tags","blobs_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/statuses/{sha}","languages_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/languages","stargazers_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/stargazers","contributors_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/contributors","subscribers_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/subscribers","subscription_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/subscription","commits_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/contents/{+path}","compare_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/merges","archive_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/downloads","issues_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues{/number}","pulls_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls{/number}","milestones_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/milestones{/number}","notifications_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/labels{/name}","releases_url":"https://api.github.com/repos/weberhofer/jsonrpcphp/releases{/id}","created_at":"2014-07-24T16:37:24Z","updated_at":"2015-04-16T10:36:47Z","pushed_at":"2015-05-22T12:32:20Z","git_url":"git://github.com/weberhofer/jsonrpcphp.git","ssh_url":"git@github.com:weberhofer/jsonrpcphp.git","clone_url":"https://github.com/weberhofer/jsonrpcphp.git","svn_url":"https://github.com/weberhofer/jsonrpcphp","homepage":null,"size":233,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4"},"html":{"href":"https://github.com/weberhofer/jsonrpcphp/pull/4"},"issue":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/4"},"comments":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/weberhofer/jsonrpcphp/statuses/1387b86132cc43927aa3d1652325ae596e5b3d01"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":9,"changed_files":1}}