{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/comments/64287114","id":64287114,"diff_hunk":"@@ -1042,4 +1047,20 @@ public static function initPlaces($appId, $apiKey, $hostsArray = null, $options\n \n         return $client->getPlacesIndex();\n     }\n+\n+    private function isAsynchDNSAvailable()\n+    {\n+        if (getenv('TRAVIS') == true) {\n+            return true;\n+        }\n+\n+        ob_start();\n+        phpinfo();","path":"src/AlgoliaSearch/Client.php","position":28,"original_position":28,"commit_id":"b10286abba3d29722781215cc3ed90573fad4054","original_commit_id":"b10286abba3d29722781215cc3ed90573fad4054","user":{"login":"JanPetr","id":1058144,"avatar_url":"https://avatars.githubusercontent.com/u/1058144?v=3","gravatar_id":"","url":"https://api.github.com/users/JanPetr","html_url":"https://github.com/JanPetr","followers_url":"https://api.github.com/users/JanPetr/followers","following_url":"https://api.github.com/users/JanPetr/following{/other_user}","gists_url":"https://api.github.com/users/JanPetr/gists{/gist_id}","starred_url":"https://api.github.com/users/JanPetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanPetr/subscriptions","organizations_url":"https://api.github.com/users/JanPetr/orgs","repos_url":"https://api.github.com/users/JanPetr/repos","events_url":"https://api.github.com/users/JanPetr/events{/privacy}","received_events_url":"https://api.github.com/users/JanPetr/received_events","type":"User","site_admin":false},"body":"There is no other way how to detect if AsynchDNS is available besides capturing phpinfo()","created_at":"2016-05-23T20:54:44Z","updated_at":"2016-05-23T20:54:44Z","html_url":"https://github.com/algolia/algoliasearch-client-php/pull/103#discussion_r64287114","pull_request_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/comments/64287114"},"html":{"href":"https://github.com/algolia/algoliasearch-client-php/pull/103#discussion_r64287114"},"pull_request":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103","id":71105095,"html_url":"https://github.com/algolia/algoliasearch-client-php/pull/103","diff_url":"https://github.com/algolia/algoliasearch-client-php/pull/103.diff","patch_url":"https://github.com/algolia/algoliasearch-client-php/pull/103.patch","issue_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/103","number":103,"state":"open","locked":false,"title":"Check AsynchDNS","user":{"login":"JanPetr","id":1058144,"avatar_url":"https://avatars.githubusercontent.com/u/1058144?v=3","gravatar_id":"","url":"https://api.github.com/users/JanPetr","html_url":"https://github.com/JanPetr","followers_url":"https://api.github.com/users/JanPetr/followers","following_url":"https://api.github.com/users/JanPetr/following{/other_user}","gists_url":"https://api.github.com/users/JanPetr/gists{/gist_id}","starred_url":"https://api.github.com/users/JanPetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanPetr/subscriptions","organizations_url":"https://api.github.com/users/JanPetr/orgs","repos_url":"https://api.github.com/users/JanPetr/repos","events_url":"https://api.github.com/users/JanPetr/events{/privacy}","received_events_url":"https://api.github.com/users/JanPetr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-23T19:15:21Z","updated_at":"2016-05-23T20:54:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c34c0a7b86290f85a5a9766f2e41f8ad7f1cce4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103/commits","review_comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103/comments","review_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/103/comments","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/statuses/b10286abba3d29722781215cc3ed90573fad4054","head":{"label":"algolia:check_asynchdns","ref":"check_asynchdns","sha":"b10286abba3d29722781215cc3ed90573fad4054","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":10172371,"name":"algoliasearch-client-php","full_name":"algolia/algoliasearch-client-php","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/algoliasearch-client-php","description":"Algolia Search API Client for PHP","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-client-php","forks_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/deployments","created_at":"2013-05-20T12:37:37Z","updated_at":"2016-05-20T10:04:04Z","pushed_at":"2016-05-23T19:15:22Z","git_url":"git://github.com/algolia/algoliasearch-client-php.git","ssh_url":"git@github.com:algolia/algoliasearch-client-php.git","clone_url":"https://github.com/algolia/algoliasearch-client-php.git","svn_url":"https://github.com/algolia/algoliasearch-client-php","homepage":null,"size":1465,"stargazers_count":86,"watchers_count":86,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":4,"forks":41,"open_issues":4,"watchers":86,"default_branch":"master"}},"base":{"label":"algolia:master","ref":"master","sha":"0535a2a09ad4eff54e4565d658a30558996d80ed","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":10172371,"name":"algoliasearch-client-php","full_name":"algolia/algoliasearch-client-php","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/algoliasearch-client-php","description":"Algolia Search API Client for PHP","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-client-php","forks_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-client-php/deployments","created_at":"2013-05-20T12:37:37Z","updated_at":"2016-05-20T10:04:04Z","pushed_at":"2016-05-23T19:15:22Z","git_url":"git://github.com/algolia/algoliasearch-client-php.git","ssh_url":"git@github.com:algolia/algoliasearch-client-php.git","clone_url":"https://github.com/algolia/algoliasearch-client-php.git","svn_url":"https://github.com/algolia/algoliasearch-client-php","homepage":null,"size":1465,"stargazers_count":86,"watchers_count":86,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":4,"forks":41,"open_issues":4,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103"},"html":{"href":"https://github.com/algolia/algoliasearch-client-php/pull/103"},"issue":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/103"},"comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-php/statuses/b10286abba3d29722781215cc3ed90573fad4054"}}}}
{"actor":{"display_login":"JanPetr"}}