{"action":"created","comment":{"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments/34070669","id":34070669,"diff_hunk":"@@ -0,0 +1,21 @@\n+--TEST--\n+Test for PHPC-325: Memory leak decoding buffers with multiple documents\n+--SKIPIF--\n+<?php require __DIR__ . \"/../utils/basic-skipif.inc\"?>\n+--FILE--\n+<?php\n+require_once __DIR__ . \"/../utils/basic.inc\";\n+\n+$bson1 = MongoDB\\BSON\\fromJSON('{\"x\": \"y\"}');\n+$bson2 = MongoDB\\BSON\\fromJSON('{\"a\": \"b\"}');\n+$value = MongoDB\\BSON\\toArray($bson1 . $bson2);\n+","path":"tests/bson/bug0325.phpt","position":12,"original_position":12,"commit_id":"50bf4301cf6fc805090836fc186054543f046662","original_commit_id":"50bf4301cf6fc805090836fc186054543f046662","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":"Noted. I pulled this right from the ticket, but I did see you made those global functions for a reason :)","created_at":"2015-07-07T18:06:31Z","updated_at":"2015-07-07T18:06:31Z","html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57#discussion_r34070669","pull_request_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments/34070669"},"html":{"href":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57#discussion_r34070669"},"pull_request":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57","id":39318338,"html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57","diff_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57.diff","patch_url":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57.patch","issue_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/57","number":57,"state":"open","locked":false,"title":"PHPC-325: bson_to_zval() leaks when buffer contains multiple documents","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":"https://jira.mongodb.org/browse/PHPC-325","created_at":"2015-07-06T22:35:31Z","updated_at":"2015-07-07T18:06:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a06acbce84a5e14ac196fd3bfebd849f752758bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57/commits","review_comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57/comments","review_comment_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments{/number}","comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/57/comments","statuses_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/50bf4301cf6fc805090836fc186054543f046662","head":{"label":"jmikola:phpc-325","ref":"phpc-325","sha":"50bf4301cf6fc805090836fc186054543f046662","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-prototype","full_name":"jmikola/mongo-php-driver-prototype","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-prototype","description":"PHP MongoDB - PHongo - new MongoDB driver for PHP","fork":true,"url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype","forks_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/forks","keys_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/teams","hooks_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/hooks","issue_events_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues/events{/number}","events_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/events","assignees_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/assignees{/user}","branches_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/branches{/branch}","tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/tags","blobs_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/statuses/{sha}","languages_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/languages","stargazers_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/stargazers","contributors_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/contributors","subscribers_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/subscribers","subscription_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/subscription","commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/contents/{+path}","compare_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/merges","archive_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/downloads","issues_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/issues{/number}","pulls_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/pulls{/number}","milestones_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/milestones{/number}","notifications_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/labels{/name}","releases_url":"https://api.github.com/repos/jmikola/mongo-php-driver-prototype/releases{/id}","created_at":"2015-03-17T22:38:23Z","updated_at":"2015-05-06T17:35:42Z","pushed_at":"2015-07-06T23:18:51Z","git_url":"git://github.com/jmikola/mongo-php-driver-prototype.git","ssh_url":"git@github.com:jmikola/mongo-php-driver-prototype.git","clone_url":"https://github.com/jmikola/mongo-php-driver-prototype.git","svn_url":"https://github.com/jmikola/mongo-php-driver-prototype","homepage":null,"size":2442,"stargazers_count":0,"watchers_count":0,"language":"C","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":"10gen-labs:master","ref":"master","sha":"c261479fd34baade16bfb1aa91ecc5cb00c87116","user":{"login":"10gen-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/10gen-labs","html_url":"https://github.com/10gen-labs","followers_url":"https://api.github.com/users/10gen-labs/followers","following_url":"https://api.github.com/users/10gen-labs/following{/other_user}","gists_url":"https://api.github.com/users/10gen-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/10gen-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10gen-labs/subscriptions","organizations_url":"https://api.github.com/users/10gen-labs/orgs","repos_url":"https://api.github.com/users/10gen-labs/repos","events_url":"https://api.github.com/users/10gen-labs/events{/privacy}","received_events_url":"https://api.github.com/users/10gen-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":19514152,"name":"mongo-php-driver-prototype","full_name":"10gen-labs/mongo-php-driver-prototype","owner":{"login":"10gen-labs","id":2118794,"avatar_url":"https://avatars.githubusercontent.com/u/2118794?v=3","gravatar_id":"","url":"https://api.github.com/users/10gen-labs","html_url":"https://github.com/10gen-labs","followers_url":"https://api.github.com/users/10gen-labs/followers","following_url":"https://api.github.com/users/10gen-labs/following{/other_user}","gists_url":"https://api.github.com/users/10gen-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/10gen-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/10gen-labs/subscriptions","organizations_url":"https://api.github.com/users/10gen-labs/orgs","repos_url":"https://api.github.com/users/10gen-labs/repos","events_url":"https://api.github.com/users/10gen-labs/events{/privacy}","received_events_url":"https://api.github.com/users/10gen-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/10gen-labs/mongo-php-driver-prototype","description":"MongoDB PHP driver (experimental)","fork":false,"url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype","forks_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/forks","keys_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/keys{/key_id}","collaborators_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/teams","hooks_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/hooks","issue_events_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/events{/number}","events_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/events","assignees_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/assignees{/user}","branches_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/branches{/branch}","tags_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/tags","blobs_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/refs{/sha}","trees_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/trees{/sha}","statuses_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/{sha}","languages_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/languages","stargazers_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/stargazers","contributors_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/contributors","subscribers_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/subscribers","subscription_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/subscription","commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/commits{/sha}","git_commits_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/git/commits{/sha}","comments_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/comments{/number}","issue_comment_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/comments{/number}","contents_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/contents/{+path}","compare_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/compare/{base}...{head}","merges_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/merges","archive_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/downloads","issues_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues{/number}","pulls_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls{/number}","milestones_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/milestones{/number}","notifications_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/labels{/name}","releases_url":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/releases{/id}","created_at":"2014-05-06T23:18:32Z","updated_at":"2015-05-21T16:03:40Z","pushed_at":"2015-07-06T23:18:52Z","git_url":"git://github.com/10gen-labs/mongo-php-driver-prototype.git","ssh_url":"git@github.com:10gen-labs/mongo-php-driver-prototype.git","clone_url":"https://github.com/10gen-labs/mongo-php-driver-prototype.git","svn_url":"https://github.com/10gen-labs/mongo-php-driver-prototype","homepage":"","size":3947,"stargazers_count":26,"watchers_count":26,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57"},"html":{"href":"https://github.com/10gen-labs/mongo-php-driver-prototype/pull/57"},"issue":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/57"},"comments":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/10gen-labs/mongo-php-driver-prototype/statuses/50bf4301cf6fc805090836fc186054543f046662"}}}}