{"action":"opened","number":481,"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/481","id":96832475,"html_url":"https://github.com/mongodb/mongo-php-driver/pull/481","diff_url":"https://github.com/mongodb/mongo-php-driver/pull/481.diff","patch_url":"https://github.com/mongodb/mongo-php-driver/pull/481.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/481","number":481,"state":"open","locked":false,"title":"PHPC-848: Consult ZEND_HASH_APPLY_PROTECTION() in PHP7","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"body":"When a numeric array was encoded to BSON, the hash's apply counter was incremented and decremented irrespective of whether apply protection was enabled. This was not compatible with immutable arrays, which may be created by OPcache. We now consult ZEND_HASH_APPLY_PROTECTION() whenever an apply counter might be modified.\r\n\r\nPreviously, object_to_bson() incremented the apply counter when converting a MongoDB\\BSON\\Type instance. Associative arrays and other objects were not protected. This patch adds recursion checking for those types.\r\n\r\nSince PHP7 already has macros for working with the apply counter, this patch adds equivalent macros for PHP 5.x.\r\n\r\nRelated issues:\r\n * https://github.com/mongodb/mongo-php-library/issues/216\r\n * https://github.com/jbboehr/php-mustache/pull/29\r\n","created_at":"2016-12-06T23:58:32Z","updated_at":"2016-12-06T23:58:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/481/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/481/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/481/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-php-driver/statuses/24cfed4805e7f96507fbf495e1fecaf7b4c3d796","head":{"label":"jmikola:1.1-phpc-848","ref":"1.1-phpc-848","sha":"24cfed4805e7f96507fbf495e1fecaf7b4c3d796","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"repo":{"id":32424485,"name":"mongo-php-driver","full_name":"jmikola/mongo-php-driver","owner":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmikola/mongo-php-driver","description":"MongoDB PHP driver","fork":true,"url":"https://api.github.com/repos/jmikola/mongo-php-driver","forks_url":"https://api.github.com/repos/jmikola/mongo-php-driver/forks","keys_url":"https://api.github.com/repos/jmikola/mongo-php-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmikola/mongo-php-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmikola/mongo-php-driver/teams","hooks_url":"https://api.github.com/repos/jmikola/mongo-php-driver/hooks","issue_events_url":"https://api.github.com/repos/jmikola/mongo-php-driver/issues/events{/number}","events_url":"https://api.github.com/repos/jmikola/mongo-php-driver/events","assignees_url":"https://api.github.com/repos/jmikola/mongo-php-driver/assignees{/user}","branches_url":"https://api.github.com/repos/jmikola/mongo-php-driver/branches{/branch}","tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver/tags","blobs_url":"https://api.github.com/repos/jmikola/mongo-php-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmikola/mongo-php-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmikola/mongo-php-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmikola/mongo-php-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/jmikola/mongo-php-driver/languages","stargazers_url":"https://api.github.com/repos/jmikola/mongo-php-driver/stargazers","contributors_url":"https://api.github.com/repos/jmikola/mongo-php-driver/contributors","subscribers_url":"https://api.github.com/repos/jmikola/mongo-php-driver/subscribers","subscription_url":"https://api.github.com/repos/jmikola/mongo-php-driver/subscription","commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmikola/mongo-php-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmikola/mongo-php-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmikola/mongo-php-driver/contents/{+path}","compare_url":"https://api.github.com/repos/jmikola/mongo-php-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmikola/mongo-php-driver/merges","archive_url":"https://api.github.com/repos/jmikola/mongo-php-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmikola/mongo-php-driver/downloads","issues_url":"https://api.github.com/repos/jmikola/mongo-php-driver/issues{/number}","pulls_url":"https://api.github.com/repos/jmikola/mongo-php-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/jmikola/mongo-php-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/jmikola/mongo-php-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmikola/mongo-php-driver/labels{/name}","releases_url":"https://api.github.com/repos/jmikola/mongo-php-driver/releases{/id}","deployments_url":"https://api.github.com/repos/jmikola/mongo-php-driver/deployments","created_at":"2015-03-17T22:38:23Z","updated_at":"2016-10-24T14:02:27Z","pushed_at":"2016-12-06T23:57:22Z","git_url":"git://github.com/jmikola/mongo-php-driver.git","ssh_url":"git@github.com:jmikola/mongo-php-driver.git","clone_url":"https://github.com/jmikola/mongo-php-driver.git","svn_url":"https://github.com/jmikola/mongo-php-driver","homepage":"https://pecl.php.net/package/mongodb","size":3409,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"mongodb:v1.1","ref":"v1.1","sha":"bf6401604517234814e5d30c2075d31b59873908","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-06T03:20:19Z","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":299,"watchers_count":299,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":23,"forks":90,"open_issues":23,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/481"},"html":{"href":"https://github.com/mongodb/mongo-php-driver/pull/481"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/481"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/481/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/pulls/481/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/481/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-php-driver/statuses/24cfed4805e7f96507fbf495e1fecaf7b4c3d796"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":15,"changed_files":2}}
{"actor":{"display_login":"jmikola"}}