phpcr/phpcr — Issue #22: improvement: closing file pointer/s after session::save() or when not needed anymore
Author: dotzoki
Created: 2011-11-25 13:45:42+00:00
State: open

just idea for "improvement"

When 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.

This 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.