{"action":"opened","number":58,"pull_request":{"url":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58","id":43620856,"html_url":"https://github.com/msgpack/msgpack-php/pull/58","diff_url":"https://github.com/msgpack/msgpack-php/pull/58.diff","patch_url":"https://github.com/msgpack/msgpack-php/pull/58.patch","issue_url":"https://api.github.com/repos/msgpack/msgpack-php/issues/58","number":58,"state":"open","locked":false,"title":"Add OPT_ASSOC for roundtrip serialization of map.","user":{"login":"ranvis","id":139048,"avatar_url":"https://avatars.githubusercontent.com/u/139048?v=3","gravatar_id":"","url":"https://api.github.com/users/ranvis","html_url":"https://github.com/ranvis","followers_url":"https://api.github.com/users/ranvis/followers","following_url":"https://api.github.com/users/ranvis/following{/other_user}","gists_url":"https://api.github.com/users/ranvis/gists{/gist_id}","starred_url":"https://api.github.com/users/ranvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranvis/subscriptions","organizations_url":"https://api.github.com/users/ranvis/orgs","repos_url":"https://api.github.com/users/ranvis/repos","events_url":"https://api.github.com/users/ranvis/events{/privacy}","received_events_url":"https://api.github.com/users/ranvis/received_events","type":"User","site_admin":false},"body":"Since PHP has no real array, unpacking both array and map into `array()` can cause loss of information.\r\nThe patch adds `OPT_ASSOC = false` option to support roundtrip serialization of map by packing `stdClass` into map and vice versa like `json_encode/decode()` does.\r\nThis will improve compatibility a bit with data generated by other langauge bindings, while preserving the previous behavior when `OPT_ASSOC = true` (default).\r\nRelated to #18 #45","created_at":"2015-08-28T12:03:21Z","updated_at":"2015-08-28T12:03:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58/commits","review_comments_url":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58/comments","review_comment_url":"https://api.github.com/repos/msgpack/msgpack-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/msgpack/msgpack-php/issues/58/comments","statuses_url":"https://api.github.com/repos/msgpack/msgpack-php/statuses/13c076bc543836fe9d189cece43a9a2c3414fe1c","head":{"label":"ranvis:assoc","ref":"assoc","sha":"13c076bc543836fe9d189cece43a9a2c3414fe1c","user":{"login":"ranvis","id":139048,"avatar_url":"https://avatars.githubusercontent.com/u/139048?v=3","gravatar_id":"","url":"https://api.github.com/users/ranvis","html_url":"https://github.com/ranvis","followers_url":"https://api.github.com/users/ranvis/followers","following_url":"https://api.github.com/users/ranvis/following{/other_user}","gists_url":"https://api.github.com/users/ranvis/gists{/gist_id}","starred_url":"https://api.github.com/users/ranvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranvis/subscriptions","organizations_url":"https://api.github.com/users/ranvis/orgs","repos_url":"https://api.github.com/users/ranvis/repos","events_url":"https://api.github.com/users/ranvis/events{/privacy}","received_events_url":"https://api.github.com/users/ranvis/received_events","type":"User","site_admin":false},"repo":{"id":41544963,"name":"msgpack-php","full_name":"ranvis/msgpack-php","owner":{"login":"ranvis","id":139048,"avatar_url":"https://avatars.githubusercontent.com/u/139048?v=3","gravatar_id":"","url":"https://api.github.com/users/ranvis","html_url":"https://github.com/ranvis","followers_url":"https://api.github.com/users/ranvis/followers","following_url":"https://api.github.com/users/ranvis/following{/other_user}","gists_url":"https://api.github.com/users/ranvis/gists{/gist_id}","starred_url":"https://api.github.com/users/ranvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranvis/subscriptions","organizations_url":"https://api.github.com/users/ranvis/orgs","repos_url":"https://api.github.com/users/ranvis/repos","events_url":"https://api.github.com/users/ranvis/events{/privacy}","received_events_url":"https://api.github.com/users/ranvis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ranvis/msgpack-php","description":"msgpack.org[PHP]","fork":true,"url":"https://api.github.com/repos/ranvis/msgpack-php","forks_url":"https://api.github.com/repos/ranvis/msgpack-php/forks","keys_url":"https://api.github.com/repos/ranvis/msgpack-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ranvis/msgpack-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ranvis/msgpack-php/teams","hooks_url":"https://api.github.com/repos/ranvis/msgpack-php/hooks","issue_events_url":"https://api.github.com/repos/ranvis/msgpack-php/issues/events{/number}","events_url":"https://api.github.com/repos/ranvis/msgpack-php/events","assignees_url":"https://api.github.com/repos/ranvis/msgpack-php/assignees{/user}","branches_url":"https://api.github.com/repos/ranvis/msgpack-php/branches{/branch}","tags_url":"https://api.github.com/repos/ranvis/msgpack-php/tags","blobs_url":"https://api.github.com/repos/ranvis/msgpack-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ranvis/msgpack-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ranvis/msgpack-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/ranvis/msgpack-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ranvis/msgpack-php/statuses/{sha}","languages_url":"https://api.github.com/repos/ranvis/msgpack-php/languages","stargazers_url":"https://api.github.com/repos/ranvis/msgpack-php/stargazers","contributors_url":"https://api.github.com/repos/ranvis/msgpack-php/contributors","subscribers_url":"https://api.github.com/repos/ranvis/msgpack-php/subscribers","subscription_url":"https://api.github.com/repos/ranvis/msgpack-php/subscription","commits_url":"https://api.github.com/repos/ranvis/msgpack-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/ranvis/msgpack-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/ranvis/msgpack-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/ranvis/msgpack-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/ranvis/msgpack-php/contents/{+path}","compare_url":"https://api.github.com/repos/ranvis/msgpack-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ranvis/msgpack-php/merges","archive_url":"https://api.github.com/repos/ranvis/msgpack-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ranvis/msgpack-php/downloads","issues_url":"https://api.github.com/repos/ranvis/msgpack-php/issues{/number}","pulls_url":"https://api.github.com/repos/ranvis/msgpack-php/pulls{/number}","milestones_url":"https://api.github.com/repos/ranvis/msgpack-php/milestones{/number}","notifications_url":"https://api.github.com/repos/ranvis/msgpack-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ranvis/msgpack-php/labels{/name}","releases_url":"https://api.github.com/repos/ranvis/msgpack-php/releases{/id}","created_at":"2015-08-28T11:56:04Z","updated_at":"2015-08-28T11:56:05Z","pushed_at":"2015-08-28T11:59:34Z","git_url":"git://github.com/ranvis/msgpack-php.git","ssh_url":"git@github.com:ranvis/msgpack-php.git","clone_url":"https://github.com/ranvis/msgpack-php.git","svn_url":"https://github.com/ranvis/msgpack-php","homepage":"","size":981,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"msgpack:master","ref":"master","sha":"7b321ea1e7ee144345df6fb3773524024b6dbe0e","user":{"login":"msgpack","id":198264,"avatar_url":"https://avatars.githubusercontent.com/u/198264?v=3","gravatar_id":"","url":"https://api.github.com/users/msgpack","html_url":"https://github.com/msgpack","followers_url":"https://api.github.com/users/msgpack/followers","following_url":"https://api.github.com/users/msgpack/following{/other_user}","gists_url":"https://api.github.com/users/msgpack/gists{/gist_id}","starred_url":"https://api.github.com/users/msgpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msgpack/subscriptions","organizations_url":"https://api.github.com/users/msgpack/orgs","repos_url":"https://api.github.com/users/msgpack/repos","events_url":"https://api.github.com/users/msgpack/events{/privacy}","received_events_url":"https://api.github.com/users/msgpack/received_events","type":"Organization","site_admin":false},"repo":{"id":5481147,"name":"msgpack-php","full_name":"msgpack/msgpack-php","owner":{"login":"msgpack","id":198264,"avatar_url":"https://avatars.githubusercontent.com/u/198264?v=3","gravatar_id":"","url":"https://api.github.com/users/msgpack","html_url":"https://github.com/msgpack","followers_url":"https://api.github.com/users/msgpack/followers","following_url":"https://api.github.com/users/msgpack/following{/other_user}","gists_url":"https://api.github.com/users/msgpack/gists{/gist_id}","starred_url":"https://api.github.com/users/msgpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msgpack/subscriptions","organizations_url":"https://api.github.com/users/msgpack/orgs","repos_url":"https://api.github.com/users/msgpack/repos","events_url":"https://api.github.com/users/msgpack/events{/privacy}","received_events_url":"https://api.github.com/users/msgpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/msgpack/msgpack-php","description":"msgpack.org[PHP]","fork":false,"url":"https://api.github.com/repos/msgpack/msgpack-php","forks_url":"https://api.github.com/repos/msgpack/msgpack-php/forks","keys_url":"https://api.github.com/repos/msgpack/msgpack-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msgpack/msgpack-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msgpack/msgpack-php/teams","hooks_url":"https://api.github.com/repos/msgpack/msgpack-php/hooks","issue_events_url":"https://api.github.com/repos/msgpack/msgpack-php/issues/events{/number}","events_url":"https://api.github.com/repos/msgpack/msgpack-php/events","assignees_url":"https://api.github.com/repos/msgpack/msgpack-php/assignees{/user}","branches_url":"https://api.github.com/repos/msgpack/msgpack-php/branches{/branch}","tags_url":"https://api.github.com/repos/msgpack/msgpack-php/tags","blobs_url":"https://api.github.com/repos/msgpack/msgpack-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msgpack/msgpack-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msgpack/msgpack-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/msgpack/msgpack-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msgpack/msgpack-php/statuses/{sha}","languages_url":"https://api.github.com/repos/msgpack/msgpack-php/languages","stargazers_url":"https://api.github.com/repos/msgpack/msgpack-php/stargazers","contributors_url":"https://api.github.com/repos/msgpack/msgpack-php/contributors","subscribers_url":"https://api.github.com/repos/msgpack/msgpack-php/subscribers","subscription_url":"https://api.github.com/repos/msgpack/msgpack-php/subscription","commits_url":"https://api.github.com/repos/msgpack/msgpack-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/msgpack/msgpack-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/msgpack/msgpack-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/msgpack/msgpack-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/msgpack/msgpack-php/contents/{+path}","compare_url":"https://api.github.com/repos/msgpack/msgpack-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msgpack/msgpack-php/merges","archive_url":"https://api.github.com/repos/msgpack/msgpack-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msgpack/msgpack-php/downloads","issues_url":"https://api.github.com/repos/msgpack/msgpack-php/issues{/number}","pulls_url":"https://api.github.com/repos/msgpack/msgpack-php/pulls{/number}","milestones_url":"https://api.github.com/repos/msgpack/msgpack-php/milestones{/number}","notifications_url":"https://api.github.com/repos/msgpack/msgpack-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msgpack/msgpack-php/labels{/name}","releases_url":"https://api.github.com/repos/msgpack/msgpack-php/releases{/id}","created_at":"2012-08-20T12:52:29Z","updated_at":"2015-08-28T02:56:05Z","pushed_at":"2015-08-28T12:03:21Z","git_url":"git://github.com/msgpack/msgpack-php.git","ssh_url":"git@github.com:msgpack/msgpack-php.git","clone_url":"https://github.com/msgpack/msgpack-php.git","svn_url":"https://github.com/msgpack/msgpack-php","homepage":"","size":981,"stargazers_count":303,"watchers_count":303,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":18,"forks":72,"open_issues":18,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58"},"html":{"href":"https://github.com/msgpack/msgpack-php/pull/58"},"issue":{"href":"https://api.github.com/repos/msgpack/msgpack-php/issues/58"},"comments":{"href":"https://api.github.com/repos/msgpack/msgpack-php/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/msgpack/msgpack-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/msgpack/msgpack-php/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/msgpack/msgpack-php/statuses/13c076bc543836fe9d189cece43a9a2c3414fe1c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":157,"deletions":6,"changed_files":9}}