{"action":"closed","number":582,"pull_request":{"url":"https://api.github.com/repos/krakjoe/pthreads/pulls/582","id":64317650,"html_url":"https://github.com/krakjoe/pthreads/pull/582","diff_url":"https://github.com/krakjoe/pthreads/pull/582.diff","patch_url":"https://github.com/krakjoe/pthreads/pull/582.patch","issue_url":"https://api.github.com/repos/krakjoe/pthreads/issues/582","number":582,"state":"closed","locked":false,"title":"Added Homegear to SAPI whitelist","user":{"login":"hfedcba","id":1392015,"avatar_url":"https://avatars.githubusercontent.com/u/1392015?v=3","gravatar_id":"","url":"https://api.github.com/users/hfedcba","html_url":"https://github.com/hfedcba","followers_url":"https://api.github.com/users/hfedcba/followers","following_url":"https://api.github.com/users/hfedcba/following{/other_user}","gists_url":"https://api.github.com/users/hfedcba/gists{/gist_id}","starred_url":"https://api.github.com/users/hfedcba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hfedcba/subscriptions","organizations_url":"https://api.github.com/users/hfedcba/orgs","repos_url":"https://api.github.com/users/hfedcba/repos","events_url":"https://api.github.com/users/hfedcba/events{/privacy}","received_events_url":"https://api.github.com/users/hfedcba/received_events","type":"User","site_admin":false},"body":"Hey,\r\n\r\nas discussed in issue #557 here is the pull request to add the open source project Homegear to your SAPI whitelist :wink:. You can find the source code here: https://github.com/Homegear/Homegear. The source code for the script engine can be found in the subdirectory src/ScriptEngine. The script engine itself runs in a seperate process for stability reasons (class ScriptEngineClient), which communicates with the main process (class ScriptEngineServer). The SAPI implementation is in php_sapi.cpp. The function reference is on https://ref.homegear.eu/php.html (only the PHP reference is complete - I'm currently working on the other parts). You can find an example PHP script using pthreads on https://github.com/Homegear/Homegear-OpenWeatherMap/blob/master/OpenWeatherMap.xml or in the reference: https://ref.homegear.eu/php.html#HomegearpollEvent.\r\n\r\nThank you :smiley:!\r\n\r\nBest regards,\r\n\r\nSathya","created_at":"2016-03-28T12:39:06Z","updated_at":"2016-05-27T13:17:32Z","closed_at":"2016-05-27T13:17:32Z","merged_at":"2016-05-27T13:17:32Z","merge_commit_sha":"958c26b0307a6cff3e1592146361bc657775accc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krakjoe/pthreads/pulls/582/commits","review_comments_url":"https://api.github.com/repos/krakjoe/pthreads/pulls/582/comments","review_comment_url":"https://api.github.com/repos/krakjoe/pthreads/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krakjoe/pthreads/issues/582/comments","statuses_url":"https://api.github.com/repos/krakjoe/pthreads/statuses/bf4769cc9b85d4eb997c79b3b24115d3225bd30f","head":{"label":"Homegear:master","ref":"master","sha":"bf4769cc9b85d4eb997c79b3b24115d3225bd30f","user":{"login":"Homegear","id":7686718,"avatar_url":"https://avatars.githubusercontent.com/u/7686718?v=3","gravatar_id":"","url":"https://api.github.com/users/Homegear","html_url":"https://github.com/Homegear","followers_url":"https://api.github.com/users/Homegear/followers","following_url":"https://api.github.com/users/Homegear/following{/other_user}","gists_url":"https://api.github.com/users/Homegear/gists{/gist_id}","starred_url":"https://api.github.com/users/Homegear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homegear/subscriptions","organizations_url":"https://api.github.com/users/Homegear/orgs","repos_url":"https://api.github.com/users/Homegear/repos","events_url":"https://api.github.com/users/Homegear/events{/privacy}","received_events_url":"https://api.github.com/users/Homegear/received_events","type":"Organization","site_admin":false},"repo":{"id":54889859,"name":"pthreads","full_name":"Homegear/pthreads","owner":{"login":"Homegear","id":7686718,"avatar_url":"https://avatars.githubusercontent.com/u/7686718?v=3","gravatar_id":"","url":"https://api.github.com/users/Homegear","html_url":"https://github.com/Homegear","followers_url":"https://api.github.com/users/Homegear/followers","following_url":"https://api.github.com/users/Homegear/following{/other_user}","gists_url":"https://api.github.com/users/Homegear/gists{/gist_id}","starred_url":"https://api.github.com/users/Homegear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homegear/subscriptions","organizations_url":"https://api.github.com/users/Homegear/orgs","repos_url":"https://api.github.com/users/Homegear/repos","events_url":"https://api.github.com/users/Homegear/events{/privacy}","received_events_url":"https://api.github.com/users/Homegear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homegear/pthreads","description":"Threading for PHP - Share Nothing, Do Everything :)","fork":true,"url":"https://api.github.com/repos/Homegear/pthreads","forks_url":"https://api.github.com/repos/Homegear/pthreads/forks","keys_url":"https://api.github.com/repos/Homegear/pthreads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homegear/pthreads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homegear/pthreads/teams","hooks_url":"https://api.github.com/repos/Homegear/pthreads/hooks","issue_events_url":"https://api.github.com/repos/Homegear/pthreads/issues/events{/number}","events_url":"https://api.github.com/repos/Homegear/pthreads/events","assignees_url":"https://api.github.com/repos/Homegear/pthreads/assignees{/user}","branches_url":"https://api.github.com/repos/Homegear/pthreads/branches{/branch}","tags_url":"https://api.github.com/repos/Homegear/pthreads/tags","blobs_url":"https://api.github.com/repos/Homegear/pthreads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homegear/pthreads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homegear/pthreads/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homegear/pthreads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homegear/pthreads/statuses/{sha}","languages_url":"https://api.github.com/repos/Homegear/pthreads/languages","stargazers_url":"https://api.github.com/repos/Homegear/pthreads/stargazers","contributors_url":"https://api.github.com/repos/Homegear/pthreads/contributors","subscribers_url":"https://api.github.com/repos/Homegear/pthreads/subscribers","subscription_url":"https://api.github.com/repos/Homegear/pthreads/subscription","commits_url":"https://api.github.com/repos/Homegear/pthreads/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homegear/pthreads/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homegear/pthreads/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homegear/pthreads/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homegear/pthreads/contents/{+path}","compare_url":"https://api.github.com/repos/Homegear/pthreads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homegear/pthreads/merges","archive_url":"https://api.github.com/repos/Homegear/pthreads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homegear/pthreads/downloads","issues_url":"https://api.github.com/repos/Homegear/pthreads/issues{/number}","pulls_url":"https://api.github.com/repos/Homegear/pthreads/pulls{/number}","milestones_url":"https://api.github.com/repos/Homegear/pthreads/milestones{/number}","notifications_url":"https://api.github.com/repos/Homegear/pthreads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homegear/pthreads/labels{/name}","releases_url":"https://api.github.com/repos/Homegear/pthreads/releases{/id}","deployments_url":"https://api.github.com/repos/Homegear/pthreads/deployments","created_at":"2016-03-28T12:12:33Z","updated_at":"2016-03-28T12:12:33Z","pushed_at":"2016-03-28T12:14:32Z","git_url":"git://github.com/Homegear/pthreads.git","ssh_url":"git@github.com:Homegear/pthreads.git","clone_url":"https://github.com/Homegear/pthreads.git","svn_url":"https://github.com/Homegear/pthreads","homepage":"","size":2013,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"krakjoe:master","ref":"master","sha":"480d7707a111de6e9c2d31e266a4bb92294d5f08","user":{"login":"krakjoe","id":2236138,"avatar_url":"https://avatars.githubusercontent.com/u/2236138?v=3","gravatar_id":"","url":"https://api.github.com/users/krakjoe","html_url":"https://github.com/krakjoe","followers_url":"https://api.github.com/users/krakjoe/followers","following_url":"https://api.github.com/users/krakjoe/following{/other_user}","gists_url":"https://api.github.com/users/krakjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/krakjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakjoe/subscriptions","organizations_url":"https://api.github.com/users/krakjoe/orgs","repos_url":"https://api.github.com/users/krakjoe/repos","events_url":"https://api.github.com/users/krakjoe/events{/privacy}","received_events_url":"https://api.github.com/users/krakjoe/received_events","type":"User","site_admin":false},"repo":{"id":5589723,"name":"pthreads","full_name":"krakjoe/pthreads","owner":{"login":"krakjoe","id":2236138,"avatar_url":"https://avatars.githubusercontent.com/u/2236138?v=3","gravatar_id":"","url":"https://api.github.com/users/krakjoe","html_url":"https://github.com/krakjoe","followers_url":"https://api.github.com/users/krakjoe/followers","following_url":"https://api.github.com/users/krakjoe/following{/other_user}","gists_url":"https://api.github.com/users/krakjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/krakjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakjoe/subscriptions","organizations_url":"https://api.github.com/users/krakjoe/orgs","repos_url":"https://api.github.com/users/krakjoe/repos","events_url":"https://api.github.com/users/krakjoe/events{/privacy}","received_events_url":"https://api.github.com/users/krakjoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krakjoe/pthreads","description":"Threading for PHP - Share Nothing, Do Everything :)","fork":false,"url":"https://api.github.com/repos/krakjoe/pthreads","forks_url":"https://api.github.com/repos/krakjoe/pthreads/forks","keys_url":"https://api.github.com/repos/krakjoe/pthreads/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krakjoe/pthreads/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krakjoe/pthreads/teams","hooks_url":"https://api.github.com/repos/krakjoe/pthreads/hooks","issue_events_url":"https://api.github.com/repos/krakjoe/pthreads/issues/events{/number}","events_url":"https://api.github.com/repos/krakjoe/pthreads/events","assignees_url":"https://api.github.com/repos/krakjoe/pthreads/assignees{/user}","branches_url":"https://api.github.com/repos/krakjoe/pthreads/branches{/branch}","tags_url":"https://api.github.com/repos/krakjoe/pthreads/tags","blobs_url":"https://api.github.com/repos/krakjoe/pthreads/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krakjoe/pthreads/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krakjoe/pthreads/git/refs{/sha}","trees_url":"https://api.github.com/repos/krakjoe/pthreads/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krakjoe/pthreads/statuses/{sha}","languages_url":"https://api.github.com/repos/krakjoe/pthreads/languages","stargazers_url":"https://api.github.com/repos/krakjoe/pthreads/stargazers","contributors_url":"https://api.github.com/repos/krakjoe/pthreads/contributors","subscribers_url":"https://api.github.com/repos/krakjoe/pthreads/subscribers","subscription_url":"https://api.github.com/repos/krakjoe/pthreads/subscription","commits_url":"https://api.github.com/repos/krakjoe/pthreads/commits{/sha}","git_commits_url":"https://api.github.com/repos/krakjoe/pthreads/git/commits{/sha}","comments_url":"https://api.github.com/repos/krakjoe/pthreads/comments{/number}","issue_comment_url":"https://api.github.com/repos/krakjoe/pthreads/issues/comments{/number}","contents_url":"https://api.github.com/repos/krakjoe/pthreads/contents/{+path}","compare_url":"https://api.github.com/repos/krakjoe/pthreads/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krakjoe/pthreads/merges","archive_url":"https://api.github.com/repos/krakjoe/pthreads/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krakjoe/pthreads/downloads","issues_url":"https://api.github.com/repos/krakjoe/pthreads/issues{/number}","pulls_url":"https://api.github.com/repos/krakjoe/pthreads/pulls{/number}","milestones_url":"https://api.github.com/repos/krakjoe/pthreads/milestones{/number}","notifications_url":"https://api.github.com/repos/krakjoe/pthreads/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krakjoe/pthreads/labels{/name}","releases_url":"https://api.github.com/repos/krakjoe/pthreads/releases{/id}","deployments_url":"https://api.github.com/repos/krakjoe/pthreads/deployments","created_at":"2012-08-28T17:57:40Z","updated_at":"2016-05-26T15:27:48Z","pushed_at":"2016-05-27T13:17:32Z","git_url":"git://github.com/krakjoe/pthreads.git","ssh_url":"git@github.com:krakjoe/pthreads.git","clone_url":"https://github.com/krakjoe/pthreads.git","svn_url":"https://github.com/krakjoe/pthreads","homepage":"","size":2686,"stargazers_count":1977,"watchers_count":1977,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":333,"mirror_url":null,"open_issues_count":18,"forks":333,"open_issues":18,"watchers":1977,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krakjoe/pthreads/pulls/582"},"html":{"href":"https://github.com/krakjoe/pthreads/pull/582"},"issue":{"href":"https://api.github.com/repos/krakjoe/pthreads/issues/582"},"comments":{"href":"https://api.github.com/repos/krakjoe/pthreads/issues/582/comments"},"review_comments":{"href":"https://api.github.com/repos/krakjoe/pthreads/pulls/582/comments"},"review_comment":{"href":"https://api.github.com/repos/krakjoe/pthreads/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krakjoe/pthreads/pulls/582/commits"},"statuses":{"href":"https://api.github.com/repos/krakjoe/pthreads/statuses/bf4769cc9b85d4eb997c79b3b24115d3225bd30f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"krakjoe","id":2236138,"avatar_url":"https://avatars.githubusercontent.com/u/2236138?v=3","gravatar_id":"","url":"https://api.github.com/users/krakjoe","html_url":"https://github.com/krakjoe","followers_url":"https://api.github.com/users/krakjoe/followers","following_url":"https://api.github.com/users/krakjoe/following{/other_user}","gists_url":"https://api.github.com/users/krakjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/krakjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakjoe/subscriptions","organizations_url":"https://api.github.com/users/krakjoe/orgs","repos_url":"https://api.github.com/users/krakjoe/repos","events_url":"https://api.github.com/users/krakjoe/events{/privacy}","received_events_url":"https://api.github.com/users/krakjoe/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"krakjoe"}}