Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement serialize prevention. #803

Closed
wants to merge 1 commit into from

Conversation

twistor
Copy link

@twistor twistor commented Jun 21, 2017

Coming from thephpleague/flysystem-sftp#36.

I've moved the actual data storage into a function static, that should help to ensure that it doesn't get serialized. I'm also not sure if class statics leak.

Edit: Added some tests to ensure behavior.

@twistor
Copy link
Author

twistor commented Jun 21, 2017

I would argue that League\Flysystem\Filesystem should implement __sleep(), but that would be unfortunate for people successfully serializing current filesystems.

@frankdejonge
Copy link
Member

@twistor I'm thinking of closing this one. While it protects some, I think this should be the user's responsibility. Agree?

@twistor
Copy link
Author

twistor commented Jan 26, 2018

That's fine with me.

@twistor twistor closed this Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants