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

UploadedFile::moveTo() doesn't remove the original file when used in CLI context and keep grab the handle. #108

Closed
k2rn opened this issue Jul 8, 2022 · 1 comment
Labels
Bug Something isn't working

Comments

@k2rn
Copy link
Contributor

k2rn commented Jul 8, 2022

Bug Report

Q A
Version(s) 2.11.2

Summary

UploadedFile::moveTo() doesn't remove the original file when used in CLI context and keep grab the handle. So PHPUnit can't remove setup files. It fixed in this PR.
#98

Current behavior

The uploaded file could not be removed when we called UploadedFile::moveTo().

How to reproduce

Instantiate UploadedFile, and post the object in PHPUnit testing, then remove it at tearDown, it could not be remove and raise error 'the file is in busy'.

Expected behavior

If UploadedFile::moveTo was called, the original file must be moved.

@k2rn k2rn added the Bug Something isn't working label Jul 8, 2022
@k2rn
Copy link
Contributor Author

k2rn commented Jul 8, 2022

This issue was fixed.

I created this issue by this mention.
#98 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant