{"issue":{"created_at":"2011-11-25T13:45:42Z","state":"open","updated_at":"2011-11-25T16:35:13Z","user":{"gravatar_id":"f6ae55829560a4852a675f25e1729a3d","id":247270,"url":"https://api.github.com/users/dotzoki","login":"dotzoki","avatar_url":"https://secure.gravatar.com/avatar/f6ae55829560a4852a675f25e1729a3d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"just idea for \"improvement\"\r\n\r\nWhen passing file pointer/s resource to node::setProperty(), PHPCR should keep track of them so that all open pointers should be closed after call of session::save() or as soon as PHPCR doesn't need them anymore.\r\n\r\nThis would be the default behavior. If user doesn't want his file resource to be closed or needs the resource then he should reopen same pointer, do things with it before it's passed or there could be a config option for disabling that behavior. \r\n","assignee":null,"id":2349456,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":22,"labels":[],"title":"improvement: closing file pointer/s after session::save() or when not needed anymore","closed_at":null,"html_url":"https://github.com/phpcr/phpcr/issues/22","url":"https://api.github.com/repos/phpcr/phpcr/issues/22","milestone":null},"action":"created","comment":{"created_at":"2011-11-25T16:35:13Z","updated_at":"2011-11-25T16:35:13Z","user":{"gravatar_id":"54787afbd0e7c30936101c2fa84bd89b","id":300279,"url":"https://api.github.com/users/lsmith77","login":"lsmith77","avatar_url":"https://secure.gravatar.com/avatar/54787afbd0e7c30936101c2fa84bd89b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"@bergie, @dbu: I remember us talking about this topic.\r\nI like @dotzoki suggestion of basically saying any resources passed to PHPCR are then managed by PHPCR.","id":2876075,"url":"https://api.github.com/repos/phpcr/phpcr/issues/comments/2876075"}}