-
Notifications
You must be signed in to change notification settings - Fork 104
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
File stream is dropped on writeStream() #113
Comments
@violuke You need to check if if (is_resource($someFile)) {
fclose($someFile);
} |
Thanks, yes, I know I can check, but I think it's a bug that this adapter works differently to the others? |
@violuke it appears to be normal behavior. According to the official Flysystem documentation:
https://flysystem.thephpleague.com/v1/docs/usage/filesystem-api/ |
You're right, sorry! Thanks for sending that link, that's really helpful. I'll close this as it's not a bug then 👍 |
with php 8.x we should not use that anymore, just use
|
After using the
writeStream()
function, my file handle is no longer a valid stream resource. Other providers (I've tested specifically with S3) keep the handle as a valid resource. I hope that makes sense?The text was updated successfully, but these errors were encountered: