{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/comments/90986287","pull_request_review_id":11498781,"id":90986287,"diff_hunk":"@@ -2016,6 +2016,18 @@ static void php_phongo_client_dtor(void *client)\n }\n #endif\n \n+static void _phongo_check_json (void) __attribute__((constructor));\n+static void _phongo_check_json (void)","path":"php_phongo.c","position":5,"original_position":5,"commit_id":"b44acd2147ee7fe745a22171d5592bfe84dad782","original_commit_id":"b44acd2147ee7fe745a22171d5592bfe84dad782","user":{"login":"bjori","id":72407,"avatar_url":"https://avatars.githubusercontent.com/u/72407?v=3","gravatar_id":"","url":"https://api.github.com/users/bjori","html_url":"https://github.com/bjori","followers_url":"https://api.github.com/users/bjori/followers","following_url":"https://api.github.com/users/bjori/following{/other_user}","gists_url":"https://api.github.com/users/bjori/gists{/gist_id}","starred_url":"https://api.github.com/users/bjori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjori/subscriptions","organizations_url":"https://api.github.com/users/bjori/orgs","repos_url":"https://api.github.com/users/bjori/repos","events_url":"https://api.github.com/users/bjori/events{/privacy}","received_events_url":"https://api.github.com/users/bjori/received_events","type":"User","site_admin":false},"body":"Its called automatically during `dlopen`","created_at":"2016-12-06T00:09:28Z","updated_at":"2016-12-06T00:09:28Z","html_url":"https://github.com/mongodb/mongo-php-driver/pull/480#discussion_r90986287","pull_request_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/comments/90986287"},"html":{"href":"https://github.com/mongodb/mongo-php-driver/pull/480#discussion_r90986287"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480","id":96625760,"html_url":"https://github.com/mongodb/mongo-php-driver/pull/480","diff_url":"https://github.com/mongodb/mongo-php-driver/pull/480.diff","patch_url":"https://github.com/mongodb/mongo-php-driver/pull/480.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/480","number":480,"state":"open","locked":false,"title":"Print a custom error message on platforms with ext/json as shared extension","user":{"login":"bjori","id":72407,"avatar_url":"https://avatars.githubusercontent.com/u/72407?v=3","gravatar_id":"","url":"https://api.github.com/users/bjori","html_url":"https://github.com/bjori","followers_url":"https://api.github.com/users/bjori/followers","following_url":"https://api.github.com/users/bjori/following{/other_user}","gists_url":"https://api.github.com/users/bjori/gists{/gist_id}","starred_url":"https://api.github.com/users/bjori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjori/subscriptions","organizations_url":"https://api.github.com/users/bjori/orgs","repos_url":"https://api.github.com/users/bjori/repos","events_url":"https://api.github.com/users/bjori/events{/privacy}","received_events_url":"https://api.github.com/users/bjori/received_events","type":"User","site_admin":false},"body":"Before:\r\n```\r\n$ php -n -dextension=modules/mongodb.so -r 'echo phpversion(\"mongodb\"), \"\\n\";'\r\nPHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mongodb.so' - modules/mongodb.so: undefined symbol: php_json_serializable_ce in Unknown on line 0\r\n```\r\nAfter:\r\n```\r\n$ php -n -dextension=modules/mongodb.so -r 'echo phpversion(\"mongodb\"), \"\\n\";'\r\nPlease make sure json.so is loaded before mongodb.so\r\nPHP Warning:  Cannot load module 'mongodb' because required module 'json' is not loaded in Unknown on line 0\r\n```\r\n","created_at":"2016-12-05T22:48:46Z","updated_at":"2016-12-06T00:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a259d4405b94d588e075e0aced05db060aca383f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/480/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-php-driver/statuses/b44acd2147ee7fe745a22171d5592bfe84dad782","head":{"label":"bjori:distros","ref":"distros","sha":"b44acd2147ee7fe745a22171d5592bfe84dad782","user":{"login":"bjori","id":72407,"avatar_url":"https://avatars.githubusercontent.com/u/72407?v=3","gravatar_id":"","url":"https://api.github.com/users/bjori","html_url":"https://github.com/bjori","followers_url":"https://api.github.com/users/bjori/followers","following_url":"https://api.github.com/users/bjori/following{/other_user}","gists_url":"https://api.github.com/users/bjori/gists{/gist_id}","starred_url":"https://api.github.com/users/bjori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjori/subscriptions","organizations_url":"https://api.github.com/users/bjori/orgs","repos_url":"https://api.github.com/users/bjori/repos","events_url":"https://api.github.com/users/bjori/events{/privacy}","received_events_url":"https://api.github.com/users/bjori/received_events","type":"User","site_admin":false},"repo":{"id":27934502,"name":"mongo-php-driver","full_name":"bjori/mongo-php-driver","owner":{"login":"bjori","id":72407,"avatar_url":"https://avatars.githubusercontent.com/u/72407?v=3","gravatar_id":"","url":"https://api.github.com/users/bjori","html_url":"https://github.com/bjori","followers_url":"https://api.github.com/users/bjori/followers","following_url":"https://api.github.com/users/bjori/following{/other_user}","gists_url":"https://api.github.com/users/bjori/gists{/gist_id}","starred_url":"https://api.github.com/users/bjori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjori/subscriptions","organizations_url":"https://api.github.com/users/bjori/orgs","repos_url":"https://api.github.com/users/bjori/repos","events_url":"https://api.github.com/users/bjori/events{/privacy}","received_events_url":"https://api.github.com/users/bjori/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjori/mongo-php-driver","description":"PHP MongoDB - PHongo - new MongoDB driver for PHP","fork":true,"url":"https://api.github.com/repos/bjori/mongo-php-driver","forks_url":"https://api.github.com/repos/bjori/mongo-php-driver/forks","keys_url":"https://api.github.com/repos/bjori/mongo-php-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjori/mongo-php-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjori/mongo-php-driver/teams","hooks_url":"https://api.github.com/repos/bjori/mongo-php-driver/hooks","issue_events_url":"https://api.github.com/repos/bjori/mongo-php-driver/issues/events{/number}","events_url":"https://api.github.com/repos/bjori/mongo-php-driver/events","assignees_url":"https://api.github.com/repos/bjori/mongo-php-driver/assignees{/user}","branches_url":"https://api.github.com/repos/bjori/mongo-php-driver/branches{/branch}","tags_url":"https://api.github.com/repos/bjori/mongo-php-driver/tags","blobs_url":"https://api.github.com/repos/bjori/mongo-php-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjori/mongo-php-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjori/mongo-php-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjori/mongo-php-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjori/mongo-php-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/bjori/mongo-php-driver/languages","stargazers_url":"https://api.github.com/repos/bjori/mongo-php-driver/stargazers","contributors_url":"https://api.github.com/repos/bjori/mongo-php-driver/contributors","subscribers_url":"https://api.github.com/repos/bjori/mongo-php-driver/subscribers","subscription_url":"https://api.github.com/repos/bjori/mongo-php-driver/subscription","commits_url":"https://api.github.com/repos/bjori/mongo-php-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjori/mongo-php-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjori/mongo-php-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjori/mongo-php-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjori/mongo-php-driver/contents/{+path}","compare_url":"https://api.github.com/repos/bjori/mongo-php-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjori/mongo-php-driver/merges","archive_url":"https://api.github.com/repos/bjori/mongo-php-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjori/mongo-php-driver/downloads","issues_url":"https://api.github.com/repos/bjori/mongo-php-driver/issues{/number}","pulls_url":"https://api.github.com/repos/bjori/mongo-php-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/bjori/mongo-php-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/bjori/mongo-php-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjori/mongo-php-driver/labels{/name}","releases_url":"https://api.github.com/repos/bjori/mongo-php-driver/releases{/id}","deployments_url":"https://api.github.com/repos/bjori/mongo-php-driver/deployments","created_at":"2014-12-12T19:17:59Z","updated_at":"2016-12-05T22:18:15Z","pushed_at":"2016-12-05T22:59:56Z","git_url":"git://github.com/bjori/mongo-php-driver.git","ssh_url":"git@github.com:bjori/mongo-php-driver.git","clone_url":"https://github.com/bjori/mongo-php-driver.git","svn_url":"https://github.com/bjori/mongo-php-driver","homepage":null,"size":3792,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"33b9e5f75bbcc99c875f0343201dd1326aca484c","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":19514152,"name":"mongo-php-driver","full_name":"mongodb/mongo-php-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-php-driver","description":"MongoDB PHP driver","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-php-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-php-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-php-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-php-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-php-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-php-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-php-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-php-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-php-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-php-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-php-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-php-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-php-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-php-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-php-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-php-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-php-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-php-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-php-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-php-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-php-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-php-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-php-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-php-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-php-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-php-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-php-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-php-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-php-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-php-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-php-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/deployments","created_at":"2014-05-06T23:18:32Z","updated_at":"2016-12-05T18:38:54Z","pushed_at":"2016-12-05T22:59:56Z","git_url":"git://github.com/mongodb/mongo-php-driver.git","ssh_url":"git@github.com:mongodb/mongo-php-driver.git","clone_url":"https://github.com/mongodb/mongo-php-driver.git","svn_url":"https://github.com/mongodb/mongo-php-driver","homepage":"https://pecl.php.net/package/mongodb","size":5069,"stargazers_count":298,"watchers_count":298,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":22,"forks":90,"open_issues":22,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480"},"html":{"href":"https://github.com/mongodb/mongo-php-driver/pull/480"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/480"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/480/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/480/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/statuses/b44acd2147ee7fe745a22171d5592bfe84dad782"}}}}
{"actor":{"display_login":"bjori"}}