{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/9048","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/9048/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9048/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/9048/events","html_url":"https://github.com/cakephp/cakephp/pull/9048","id":162587342,"number":9048,"title":"Adds call to $file->close() in Shell::createFile()","user":{"login":"thinkingmedia","id":551022,"avatar_url":"https://avatars.githubusercontent.com/u/551022?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkingmedia","html_url":"https://github.com/thinkingmedia","followers_url":"https://api.github.com/users/thinkingmedia/followers","following_url":"https://api.github.com/users/thinkingmedia/following{/other_user}","gists_url":"https://api.github.com/users/thinkingmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkingmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkingmedia/subscriptions","organizations_url":"https://api.github.com/users/thinkingmedia/orgs","repos_url":"https://api.github.com/users/thinkingmedia/repos","events_url":"https://api.github.com/users/thinkingmedia/events{/privacy}","received_events_url":"https://api.github.com/users/thinkingmedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T02:08:45Z","updated_at":"2016-06-28T02:10:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/9048","html_url":"https://github.com/cakephp/cakephp/pull/9048","diff_url":"https://github.com/cakephp/cakephp/pull/9048.diff","patch_url":"https://github.com/cakephp/cakephp/pull/9048.patch"},"body":"I found that PHP in the CLI was leaving the file handle open for `createFile`. For most people, this isn't an issue as it will close when PHP exists, but I was batch processing a few thousand files when I ran into this as a memory leak.\r\n\r\nClosing the file resolved the leak."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/228929395","html_url":"https://github.com/cakephp/cakephp/pull/9048#issuecomment-228929395","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9048","id":228929395,"user":{"login":"thinkingmedia","id":551022,"avatar_url":"https://avatars.githubusercontent.com/u/551022?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkingmedia","html_url":"https://github.com/thinkingmedia","followers_url":"https://api.github.com/users/thinkingmedia/followers","following_url":"https://api.github.com/users/thinkingmedia/following{/other_user}","gists_url":"https://api.github.com/users/thinkingmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkingmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkingmedia/subscriptions","organizations_url":"https://api.github.com/users/thinkingmedia/orgs","repos_url":"https://api.github.com/users/thinkingmedia/repos","events_url":"https://api.github.com/users/thinkingmedia/events{/privacy}","received_events_url":"https://api.github.com/users/thinkingmedia/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T02:10:32Z","updated_at":"2016-06-28T02:10:32Z","body":"Is there a way I can squash the above commits into one without having to restart the PR?"}}
{"actor":{"display_login":"thinkingmedia"}}