{"action":"closed","issue":{"url":"https://api.github.com/repos/kvz/locutus/issues/366","repository_url":"https://api.github.com/repos/kvz/locutus","labels_url":"https://api.github.com/repos/kvz/locutus/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/kvz/locutus/issues/366/comments","events_url":"https://api.github.com/repos/kvz/locutus/issues/366/events","html_url":"https://github.com/kvz/locutus/issues/366","id":306425725,"number":366,"title":"Bug in PHP parse_str function","user":{"login":"JoniJnm","id":577282,"avatar_url":"https://avatars3.githubusercontent.com/u/577282?v=4","gravatar_id":"","url":"https://api.github.com/users/JoniJnm","html_url":"https://github.com/JoniJnm","followers_url":"https://api.github.com/users/JoniJnm/followers","following_url":"https://api.github.com/users/JoniJnm/following{/other_user}","gists_url":"https://api.github.com/users/JoniJnm/gists{/gist_id}","starred_url":"https://api.github.com/users/JoniJnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoniJnm/subscriptions","organizations_url":"https://api.github.com/users/JoniJnm/orgs","repos_url":"https://api.github.com/users/JoniJnm/repos","events_url":"https://api.github.com/users/JoniJnm/events{/privacy}","received_events_url":"https://api.github.com/users/JoniJnm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kukawski","id":346655,"avatar_url":"https://avatars2.githubusercontent.com/u/346655?v=4","gravatar_id":"","url":"https://api.github.com/users/kukawski","html_url":"https://github.com/kukawski","followers_url":"https://api.github.com/users/kukawski/followers","following_url":"https://api.github.com/users/kukawski/following{/other_user}","gists_url":"https://api.github.com/users/kukawski/gists{/gist_id}","starred_url":"https://api.github.com/users/kukawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukawski/subscriptions","organizations_url":"https://api.github.com/users/kukawski/orgs","repos_url":"https://api.github.com/users/kukawski/repos","events_url":"https://api.github.com/users/kukawski/events{/privacy}","received_events_url":"https://api.github.com/users/kukawski/received_events","type":"User","site_admin":false},"assignees":[{"login":"kukawski","id":346655,"avatar_url":"https://avatars2.githubusercontent.com/u/346655?v=4","gravatar_id":"","url":"https://api.github.com/users/kukawski","html_url":"https://github.com/kukawski","followers_url":"https://api.github.com/users/kukawski/followers","following_url":"https://api.github.com/users/kukawski/following{/other_user}","gists_url":"https://api.github.com/users/kukawski/gists{/gist_id}","starred_url":"https://api.github.com/users/kukawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukawski/subscriptions","organizations_url":"https://api.github.com/users/kukawski/orgs","repos_url":"https://api.github.com/users/kukawski/repos","events_url":"https://api.github.com/users/kukawski/events{/privacy}","received_events_url":"https://api.github.com/users/kukawski/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-19T11:33:25Z","updated_at":"2018-04-06T07:28:16Z","closed_at":"2018-04-06T07:28:16Z","author_association":"CONTRIBUTOR","body":"There is a bug in the function parse_str\r\n\r\n```js\r\nvar data = {};\r\nparse_str('a[][b]=1', data);\r\nconsole.log(data);\r\n```\r\nThe value of data is:\r\n\r\n```js\r\n{\r\n    'a': {\r\n        'b': 1\r\n    }\r\n}\r\n```\r\n\r\nBut should be:\r\n\r\n```js\r\n{\r\n    'a': [\r\n        {\r\n            'b': 1\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\n\r\nhttp://sandbox.onlinephpfunctions.com/code/5286b2e4c9f7aaced6bc5bfade41bf734ed0e315"}}
{"actor":{"display_login":"kvz"}}